运用jdk
源代码在线查看: pers_pwd.jsp
oa.bean.PersonBean myBean =null;
try{
myBean = new oa.bean.PersonBean();
DealString ds = new DealString();
String strUserName = ds.toString((String)request.getParameter("txt_id"));
String uid = (String)session.getAttribute("zgbh");
// uid = "11";
String strEdit = ds.toString((String)request.getParameter("txt_edit"));
%>
myBean.setPersonNO(uid);
Hashtable hash = (Hashtable)myBean.getOneData();
String strname =(String)hash.get("YHM");
%>
修改密码
用户名:
旧密码:
新密码:
密码确认:
function toservlet()
{
var strnewMM =document.all.newuserpwd.value;
var strconMM =document.all.confirmpwd.value;
if(strnewMM!=strconMM)
{
alert("密码错!");
}
else
{
document.all.txt_type.value = "7";
document.all.txt_id.value = "";
document.all.txt_edit.value = "";
document.all.form1.action = "../../manageservlet";
document.all.form1.submit();
}
}
if(myBean!=null)myBean.closeConn();
}%>