This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 ?