jsp开发中,密码修改问题。

来源:百度知道 编辑:UC知道 时间:2024/06/01 03:43:21
index.jsp页面代码:
<br> IT设备管理系统登陆:<br><br><br>
<form action="servlet/login" method="post" name="myform" id="myform" >
用户ID:<input type="text" id="id" name="id" ><br><br>
密  码:<input type="password" id="password" name="password" ><br><br>
<input type="submit" value="登  陆">
<input type="reset" value="重  置"> <br><br>
<font color='red'><%=error %></font>
</form>
request.setCharacterEncoding("UTF-8");
String name=request.getParameter("id");
String password=request.getParameter("password");
HttpSession session = request.getSession(true);
try{
Class.forName("com.microsoft.jdbc.sqlserver.S

<table border="0" width="1003" height="432" cellspacing="0" cellpadding="0">
<tr>
<td height="12" width="994" colspan="6" bgcolor="#4B3276"></td>
</tr>
<tr>
<td height="18" width="180" bgcolor="#D9D4F7" colspan="2">
 </td>
<td height="18" width="823" bgcolor="#D9D4F7" style="font-size: 9pt" colspan="4">
      您所在的位置: 
<a href="writeDn.jsp">资讯科技部服务申请</a> >> <a href="usersAction2.do?method=view&id=<bean:write name="user" property="id"/>">
个人资料</a> >> <font color="#4B3276"><b>更改资料</b></td>
</tr>
<tr>