• Post Reply Bookmark Topic Watch Topic
  • New Topic

Submitting a lot of textbox in a jsp page

 
suraj shah
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
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

Thanks
Suraj
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

Bill
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!