aspose file tools*
The moose likes Servlets and the fly likes checkbox in servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "checkbox in servlet" Watch "checkbox in servlet" New topic
Author

checkbox in servlet

rakhi sinha
Ranch Hand

Joined: Mar 26, 2012
Posts: 147
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

Joined: Jan 10, 2002
Posts: 61766
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 244

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: checkbox in servlet