开学第一周作业

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">保&nbsp;&nbsp;存</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

<%@ page language="java" contentType="text/html; charset=UTF-8"
    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>
 </div>
</body>
</html>
 
xiugaimima.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
    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 class="a">
    原密码<input type="text" id="sex" name="sex" />
   </div>
   <div class="a">
    修改后的密码<input type="text" id="age" name="age" />
   </div>
 </div>
</body>
</html>
 
liulan.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
    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>
   </tr>
   
   
 </div>
</body>
</html>
 
accorditionRegister.html 的部分,左侧菜单栏里的
<div id="scrollContent">
  <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>
 
做的就是这些,算是明白了一点点在html的模板里如何加入jsp的内容
 
 
这周刚开始上双学位的课,突然之间课程紧张起来了,所以有点没有适应过来,导致课下几乎没怎么练习专业课的内容,这点要改
 
下周是第二周,新的一周,新的起航,加油,泽宇!

猜你喜欢

转载自www.cnblogs.com/mitang0-0/p/10468093.html