insert condition into JSP page.

Posted on 2005-02-27
Medium Priority
Last Modified: 2010-04-03
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
Question by:nurbahiyah
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

alexhogan earned 100 total points
ID: 13419806
if(newPwd == newPwd2){
   // Insert the the update query here

Make sure that you have associated the redirect function to the page.

Author Comment

ID: 13601643
i wish to close this question

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question