This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am working on this project and facing some issues. Am a newbie in web development and need your assitance.
Here is my problem: I created a JSP page with a form and input fields. Once the form is submitted, I want the data to be processed by servlet which further invokes a DAO class that interacts with database and generates the response based on what user entered. Little diagram will probably explain it well.
login.jsp ---------> loginServlet --------> loginDAO (check if the username is already in DB) ------------> success.jsp (if username exists) error (otherwise).
I am putting the location for login servlet in form action attribute but it cant find it. I have tried all means.
I can put the code here if you need for reference. Eagerly waiting for the reply.
Hi, thanks for the reply. I am able to pass the control from servlet to jsp but my problem is coming to servlet from jsp. like say I have a form with values taken from user, how do I pass the control to servlet to process the form ?