I am developing a web application. I have successfully done login page.
Now my difficulty is I am taking some input from user in the JSP form, I want to save that into database, for that I am doing following steps:
1. taking input in form.jsp
2. in action im using saveForm.jsp
3. in saveForm.jsp im calling a java method which saves the info to database.
4. and depending on the return of the method the page gets redirected.
I think I am doing something wrong here. I want to know how to do that from only a single jsp and depending on the status i should be able to redirect.