Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with saving user information in database via "saveuser" servlet

 
Purva Sharma
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am making my minor project on a money management website
One problem is occurring:
As we are registering via register.jsp page, the form in that jsp page calls the "saveuser" servlet which saves the user data in the database.
But the data is not getting saved. :confused:
Please give an answer very soon

Following is the code of register.jsp page:



And this is the code of "saveuser" servlet:

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64183
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As in your other post, you should be using doPost() for this -- proceesRequest is meaningless and an anti-pattern -- and you should not be storing information in instance variables.

Having both doGet and doPost do the same thing is violation of HTTP. Don't do it!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic