我正在开发一个Web应用程序。在那里,我将html输入元素命名为textfield[i][j]
。
如何在servlet中获取这些元素?
String table_array[][] = new String[rows][cols];
for (int i=0; i<rows; i++) {
for ( int j=0; j<cols; j++){
table_array[i][j] = request.getParameter("label"+[i]+[j]+""); // here im facing problem to access the element.
}
}
如何从请求参数访问label[i][j]
值?