File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes servlets(help) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets(help)" Watch "servlets(help)" New topic
Author

servlets(help)

janet wong
Greenhorn

Joined: Apr 17, 2002
Posts: 1
I write a report servlets (employee report)
Name SSN Birthdate
Mary 12345789 12/05/1970
... etc
I like to write some delete servlet with checkbox(delete) ,for every row in the table this is to choice for example first, or third employee record to delete.
checkbox Name SSN Birthdate
x Mary --- ------- for example I click the checkbox in this row because I like to delete this Name,SSN,Birthdate.
It's possible somebody to help me to write some code for this problem.
This is for practice , because I study servlets.
Thanks.
Sumeet Gupta
Greenhorn

Joined: Jan 12, 2001
Posts: 2
you can catch the id from the check box value you have set(use getparameter() for the same)
write a simple delete query fro the database based on this ID.
Sumeet
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"janet",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp .
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
Thanks.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlets(help)