This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Originally posted by bujjib babu: I am Having two buttons in my html page.
One is Add. Second One is Delete.
When I press Add Button it should call AddServlet and when i press Delete button it should call DeleteServlet..
Please Justify me,..
Initially, you send your both the request to the same servlet (controller) then here you check what request it is, (one way is, give any value to button and then compare here...) and do whatever you want to do...
This is the simplest solution of your problem. I guess.
Charles Lyons (SCJP 1.4, April 2003; SCJP 5, Dec 2006; SCWCD 1.4b, April 2004)
Author of OCEJWCD Study Companion for Oracle Exam 1Z0-899 (ISBN 0955160340 / AmazonAmazon UK )