zoukankan      html  css  js  c++  java
  • Java学习10.24(Javaweb输 出)

    程序代码

     1 <%@ page contentType="text/html"%> 
     2 <%@ page pageEncoding="gb2312"%> 
     3 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 
     4 <fmt:requestEncoding value="gb2312"/> 
     5 <html> 
     6  <head> 
     7  <title>注册信息确认</title> 
     8  </head> 
     9  <body> 
    10  <h2 align="center">注册信息确认</h2> 
    11  <table border="1" align="center"> 
    12  <tr> 
    13  <td>用户 ID</td> 
    14  <td>${param.userid}</td> 
    15  </tr> 
    16  <tr> 
    17  <td>用户名</td> 
    18  <td>${param.username}</td> 
    19  </tr> 
    20  <tr> 
    21  <td>口令</td> 
    22  <td>${param.userpass}</td> 
    23  </tr> 
    24  <tr> 
    25  <td>Email</td> 
    26  <td>${param.email}</td> 
    27  </tr> 
    28  <tr> 
    29  <td>电话</td> 
    30  <td>${param.phone}</td> 
    31  </tr> 
    32  <tr> 
    33  <td>地址</td> 
    34  <td>${param.address}</td> 
    35  </tr> 
    36  <tr> 
    37  <td>生日</td> 
    38  <td>${param.birthday}</td>
    39 </tr> 
    40  <tr> 
    41  <td>地区</td> 
    42  <td>${param.local}</td> 
    43  </tr> 
    44  <tr> 
    45  <td>学历</td> 
    46  <td>${param.degree}</td> 
    47  </tr> 
    48  <tr> 
    49  <td>备注</td> 
    50  <td>${param.comment}</td> 
    51  </tr> 
    52  <tr> 
    53  <form name="form1" action="" method="post"> 
    54  <input type="hidden" name="userid" value="${param.userid}"> 
    55  <input type="hidden" name="username" value="${param.username}"> 
    56  <input type="hidden" name="userpass" value="${param.userpass}"> 
    57  <input type="hidden" name="local" value="${param.local}"> 
    58  <input type="hidden" name="phone" value="${param.phone}"> 
    59  <input type="hidden" name="email" value="${param.email}"> 
    60  <input type="hidden" name="address" value="${param.address}"> 
    61  <input type="hidden" name="comment" value="${param.comment}"> 
    62  <input type="hidden" name="birthday" value="${param.birthday}"> 
    63  <input type="hidden" name="degree" value="${param.degree}"> 
    64  <td><input type="button" name="action1" value="确定" 
    65 onclick="this.form.action='success.jsp';this.form.submit();"></td> 
    66  <td><input type="button" name="action1" value="修改" 
    67 onclick="this.form.action='re_register.jsp';this.form.submit();"></td> 
    68  </form> 
    69  </tr> 
    70  <table> 
    71  </body> 
    72 </html>
      1 <%@ page contentType="text/html"%> 
      2 <%@ page pageEncoding="gb2312"%> 
      3 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
      4 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
      5 <fmt:requestEncoding value="gb2312"/> 
      6 <html> 
      7  <head> 
      8  <title>修改注册信息</title> 
      9  </head> 
     10  <body> 
     11  <h2 align="center">请修改注册信息</h2> 
     12  <form name="form1" action="register_confirm.jsp" method="post" 
     13  onsubmit="return isValidate(form1)"> 
     14  <table align="center"> 
     15  <tr> 
     16  <td> 用户 ID:</td> 
     17  <td><input type="text" name="userid" value="${param.userid}"> </td> 
     18  </tr> 
     19  <tr> 
     20  <td> 用户名:</td> 
     21  <td><input type="text" name="username" value="${param.username}"> </td> 
     22  </tr> 
     23  <tr> 
     24  <td> 口令:</td> 
     25  <td><input type="password" name="userpass" value="${param.userpass}"></td> 
     26  </tr> 
     27  <tr> 
     28  <td> 确认口令:</td> 
     29  <td><input type="password" name="userpass2" value="${param.userpass}"> 
     30 </td> 
     31  </tr> 
     32  <tr> 
     33  <td> 生日:</td> 
     34  <td><input type="text" name="birthday" value="${param.birthday}"> 
     35 格式为:1988-1-1</td> 
     36  </tr> 
     37  <tr> 
     38  <td> 学历:</td> 
     39  <td> 
     40  <input type="radio" name="degree" value="专科" 
     41 <c:if test="${param.degree == "专科"}">checked</c:if>>专科 
     42  <input type="radio" name="degree" value="本科" 
     43 <c:if test="${param.degree == "本科"}">checked</c:if>>本科
     44 <input type="radio" name="degree" value="硕士研究生" 
     45 <c:if test="${param.degree == "硕士"}">checked</c:if>>硕士
     46  <input type="radio" name="degree" value="博士研究生" 
     47 <c:if test="${param.degree == "博士"}">checked</c:if>>博士
     48  <input type="radio" name="degree" value="其他" 
     49 <c:if test="${param.degree == "其他"}">checked</c:if>>其他
     50  </td> 
     51  </tr> 
     52  <tr> 
     53  <td> 地区:</td> 
     54  <td> 
     55  <select name="local"> 
     56  <option value="华东">华东</option> 
     57  <option value="华南" 
     58 <c:if test="${param.local == "华南"}">selected</c:if> >华南</option> 
     59  <option value="华北" 
     60 <c:if test="${param.local == "华北"}">selected</c:if> >华北</option> 
     61  <option value="东南" 
     62 <c:if test="${param.local == "东南"}">selected</c:if> >东南</option> 
     63  <option value="西南" 
     64 <c:if test="${param.local == "西南"}">selected</c:if> >西南</option> 
     65  <option value="西北" 
     66 <c:if test="${param.local == "西北"}">selected</c:if> >西北</option> 
     67  <option value="东北" 
     68 <c:if test="${param.local == "东北"}">selected</c:if> >东北</option> 
     69  <option value="华中" 
     70 <c:if test="${param.local == "华中"}">selected</c:if> >华中</option> 
     71  </select> 
     72  </td> 
     73  </tr> 
     74  <tr> 
     75  <td> E-mail:</td> 
     76  <td><input type="text" name="email" value="${param.email}"></td> 
     77  </tr> 
     78  <tr> 
     79  <td> 地址:</td> 
     80  <td><input type="text" name="address" value="${param.address}"></td> 
     81  </tr> 
     82  <tr> 
     83  <td> 电话:</td>
     84 <td><input type="text" name="phone" value="${param.phone}"></td> 
     85  </tr> 
     86  <tr> 
     87  <td> 备注:</td> 
     88  <td> 
     89  <textarea rows="8" name="comment" cols="40"> 
     90  ${param.comment} 
     91  </textarea></td> 
     92  </tr> 
     93  <tr> 
     94  <td> <input type="reset" value="重置"></td> 
     95  <td> <input type="submit" value="提交"></td> 
     96  </tr> 
     97  <table> 
     98  </form> 
     99  </body> 
    100 </html>
     
     
  • 相关阅读:
    弱网测试—Network-Emulator-Toolkit工具
    chmod修改权限
    mysql:on duplicate key update与replace into
    mysql:批量更新
    linux:磁碟与档案系统管理
    linux:指令与档案的搜索
    linux:问题
    linux:档案与目录管理
    linux:档案权限
    linux:习惯
  • 原文地址:https://www.cnblogs.com/Lizhichengweidashen/p/14204461.html
Copyright © 2011-2022 走看看