Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

checkbox in servlet

 
rakhi sinha
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my project i want to display data in table from database to web page using servlet and corresponding to each row there should be a checkbox and then the selected check boxes data should be submitted to database by clicking on submit button.....please help me solve this problem
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you use a servlet to emit HTML? It's not 1997 anymore; JSP is much better suited to creating the views. The servlet should handle the submission.
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
data in table from database............... should be submitted to database by clicking on submit button..


I don't get this thing if data is already in DB, without doing any action on selected items why you arer sending it back again? same records will be there right.
OR
I think that submit button is not submit button it may be a delete button or some thing . Right
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!