I have a jsp page which resembles an excel sheet.
so there are n number of rows and m number of columns. all the data elements in rows/columns are represented as textboxes. this is the requirement from client.
I have to make multiple screens like this.
This data that will be displayed in textboxes will be pulled from database and can be updated and then save back to database.
What would be the best way to handle this. since the form generation is dynamic and i dont know how many rows/columns will be there, any help would be appreciated
Author and all-around good cowpoke
posted 5 years ago
1. Given the size, the form should use POST - GET might run into limits on URL length.
2. Create names for the fields that identify the field in terms convenient for your database saving operation
3. Submit the form to a servlet for extracting/verifying/etc the data - NOT to a JSP, JSP should only be used for HTML creation. See numerous discussions in this forum on the role of servlets and JSP