• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 170
  • Last Modified:

insert condition into JSP page.

hello experts.

i have a change password page as below:-
current password: --pass--
new password: --newPwd--
retype new password: --newPwd2--

after a user logs into the system, he/she is able to change password.

i've created a recordset, so that it will display the user's current password (--pass--) in the 'current password' field.

i've also did a 'server behavior-update record' thing so that the current password in the dB will be replaced by the 'retype new password' element.

now i need to put a condition in the page, so that the password will only be replaced if ('newPwd'=='newPwd2').

please help. thanks in advance
1 Solution
if(newPwd == newPwd2){
   // Insert the the update query here

Make sure that you have associated the redirect function to the page.
nurbahiyahAuthor Commented:
i wish to close this question

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now