not knowing jsp at all - the question would be
where do you set newp2 / newp1??
where do you save the password from select ??
look in sqllib/samples -- there are many samples if you don't know how to write the logic ..
Best Regards, Guy Przytula
Database Software Consultant
Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
Information Server Datastage Certified http://www.infocura.be
If the passwords are the same why do you need to update the table? Surely the data is not changing!
You have an incomplete UPDATE statement (unfinished where clause, no closing quoting or brackets).
There's a fair bit wrong with your code which makes me assume you've not posted the actual code you were working on. Post the real stuff along with any error messages and the lines upon which these errors are reported. Oh and most importantly what you want the code to do and why