zhuce.jsp
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style>
.a{
margin-top: 2px;
}
.b{
font-size: 15px;
width: 120px;
color: white;
background-color: greenyellow;
}
</style>
</head>
<body>
<%
Object message = request.getAttribute("message");
if(message!=null && !"".equals(message)){
%>
<script type="text/javascript">
alert("<%=request.getAttribute("message")%>");
</script>
<%} %>
<div align="left">
<form action="UserServlet?method=add" method="post" onsubmit="return check()">
<div class="a">
用户名<input type="text" id="username" username="username"/>
</div>
<div class="a">
密码<input type="text" id="userpassword" username=""userpassword"" />
</div><div class="a">
重复密码<input type="text" id="phonenumber" username="phonenumber" />
</div>
<div class="a">
手机号码<input type="text" id="phonenumber" username="phonenumber" />
</div>
<div class="a">
所属单位<input type="text" id="workplace" username="workplace" />
</div>
<div class="a">
<button type="submit" class="b">保 存</button>
</div>
</form>
</div>
<script type="text/javascript">
function check() {
var username = document.getElementById("username");;
var userpassword = document.getElementById("userpassword");
var phonenumber = document.getElementById("phonenumbe");
var workplace = document.getElementById("workplace");
//非空
if(username.value == '') {
alert('用户名为空');
username.focus();
return false;
}
if(userpassword.value == '') {
alert('密码为空');
userpassword.focus();
return false;
}
if(phonenumber.value == '') {
alert('手机号码为空');
phonenumber.focus();
return false;
}
if(workplace.value == '') {
alert('所属单位为空');
workplace.focus();
return false;
}
if(userpassword.value ==userpassword.value){
alert('密码一致');
return false;
}
if((int)phonenumber.value<10000000000&&(int)phonenumber.value>1000000000 ){
alert('号码格式正确');
return false;
}
}
</script>
</body>
</html>
xiugai.jsp
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>首页</title>
<style>
.a{
font-size: 26px;
margin-top: 20px;
}
</style>
</head>
<body>
<div align="center">
<div class="a">
<a href="CourseServlet?method=list">信息修改</a>
</div>
</body>
</html>
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>首页</title>
<style>
.a{
font-size: 26px;
margin-top: 20px;
}
</style>
</head>
<body>
原密码<input type="text" id="sex" name="sex" />
</div>
<div class="a">
修改后的密码<input type="text" id="age" name="age" />
</div>
</div>
</body>
</html>
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>首页</title>
<style>
.a{
font-size: 26px;
margin-top: 20px;
}
</style>
</head>
<body>
<tr>
<td>序号</td>
<td>技术需求名称</td>
<td>提交日期</td>
<td>需求状态</td>
</div>
</body>
</html>
<div class="arrowlistmenu">
<div class="menuheader expandable">系统菜单</div>
<ul class="categoryitems">
<li><a href="../zhu/zhuce.jsp" target="frmright"><span
class="text_slice">用户注册</span></a></li>
<li><a href="../templete/xtjs.html" target="frmright"><span
class="text_slice">需求征集</span></a></li>
<li><a href="../zhu/zhuce.jsp" target="frmright"><span
class="text_slice">浏览需求</span></a></li>
<li><a href="../zhu/zhuce.jsp" target="frmright"><span
class="text_slice">需求审核</span></a></li>
<li><a href="../zhu/zhuce.jsp" target="frmright"><span
class="text_slice">修改密码</span></a></li>
</ul>