my dog learned polymorphism
The moose likes JSP and the fly likes Submitting a lot of textbox in a jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Submitting a lot of textbox in a jsp page" Watch "Submitting a lot of textbox in a jsp page" New topic

Submitting a lot of textbox in a jsp page

suraj shah

Joined: Aug 14, 2010
Posts: 1
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

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
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

I agree. Here's the link:
subject: Submitting a lot of textbox in a jsp page
It's not a secret anymore!