• Post Reply Bookmark Topic Watch Topic
  • New Topic

Saving Data from JSP page to MySql Database  RSS feed

 
Rohan Dmello
Greenhorn
Posts: 2
Eclipse IDE MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI All,
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.

Can someone please tell how should i do it?

Thanks
 
Piyush Joshi
Ranch Hand
Posts: 207
Eclipse IDE Firefox Browser jQuery
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rohan, Welcome to the Ranch

You must read This Article before moving ahead.
 
Rohan Dmello
Greenhorn
Posts: 2
Eclipse IDE MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Piyush
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!