• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Update statement not working?

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So here's four pages of code for you..

1. In this page, the user enters his correct ID, question and answer (that he provided during registration)


This is forgot.jsp, that accepts the ID, Question and answer



If the entered information was true, then it redirects to this page



The user enters his new password, and the update statement is in jason.jsp, which is



So, here's my intention behind it all, after the user enters the correct, ID, question and answer, the user is redirected to a page where he enters, his new password, the new password is then stored in the "LOGIN" table to the correspoding ID correctly. Thus giving the user a new password to be able to log in.

So, there's all my code... The update doesn't work for me, any help would be appreciated. I'm guessing that there's something wrong with either page "newpassword" or "jason", what I'm assuming is that by the time I get to "jason.jsp", the parameter "id", which was entered in the first page is lost, and the update statment "Where=?" fails because of it. Any help would be appreciated, I know this is long...
 
abhiavi kumar
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't bother too much about the 2nd half of Jason.jsp, it is just some random ouput I used to test this out.
 
Ranch Hand
Posts: 108
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

what I'm assuming is that by the time ......


Can you debug and be sure on it ?
 
See ya later boys, I think I'm in love. Oh wait, she's just a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic