密码修改的问题
我写了一个修改密码的页面,但是老是出不来
HttpSession session = request.getSession();
String userID = (String)session.getAttribute( "C_user_ID ");用户ID
boolean value = false;
String srcPWD = (String)request.getAttribute( "old_passwd ");就密码
String newPwd = (String)request.getAttribute( "new_passwd ");新密码
String pstrScript = " <script language= 'javascript '> alert( '密码修改成功 '); </script> ";
String pstrScript1 = " <script language= 'javascript '> alert( '密码修改失败 '); </script> ";
SJUsr dd = new SJUsr();
if (dd.seletUsrPass(userID,srcPWD)) 查询数据
{
value = dd.updateUsrPass(userID,newPwd);修改数据
if (value = true)
{
System.out.print(pstrScript);
response.sendRedirect( "../root/updatePass.jsp ");
} else
{
System.out.print(pstrScript1);
response.sendRedirect( "../root/updatePass.jsp ");
}}
else{
response.sendRedirect( "../root/CXroot.jsp ");}
------解决方案--------------------// 兄弟,你这个地方好像不对吧!
if (value = true)