I would like to start a thread on handling the "multipe Form, one Servlet" scenario and discuss pros and cons. There are multiple use cases where this model could be deployed with a prime example being:
AccountDetails.jsp : contains multiple forms UpdateAccountDetalsServlet : depending on which form was submitted, calls a DAO method to update the database.
Now the obvious solution here would be to pass a hidden parameter to the servlet and determine which form was submitted, but this doesn't feel right. Why?
I'd like to get some feedback.
Thanks.