使用servlet中的循环获取html输入元素

时间:2014-05-04 17:35:50

标签: html loops servlets request

我正在开发一个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]值?

0 个答案:

没有答案