⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userupdate.jsp

📁 该源码包括了基于J2EE的数据持久层设计,设计中使用了DAO,Service,等模式,并在Struts下进行了测试.
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=gb2312"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Personal Profile</title>
<style type="text/css">
<!--
.style1 {
	font-size: 36px;
	font-weight: bold;
}
.style2 {font-size: 24px}
.style3 {
	font-size: 18px;
	font-weight: bold;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
a:active {
	text-decoration: none;
}
.style4 {font-family: "Times New Roman", Times, serif; font-size: 18px; }
-->
</style>
</head>

<body>
<div align="center">
  <blockquote>
    <blockquote>
      <p align="left" class="style3"><span class="style4">Your Location:</span><a href="<%=request.getContextPath()%>/pages/index.jsp"> <span class="style4">FrontPage</span></a><span class="style4">&gt;&gt;<a href="<%=request.getContextPath()%>/pages/mainmenu.jsp">Systemmenu</a>&gt;&gt;<a href="#">Change Profile</a></span> </p>
      <p class="style1">Your Personal Information </p>
    </blockquote>
  </blockquote>
  <html:form  action="userUpdate.do">
  <table width="900" border="0">
    <tr>
      <td height="40"><div align="left" class="style3">
        <p align="right">username&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp; </p>
      </div></td>
      <td>
        <div align="left">
          <p>
            <input name="username" type="text" value="<%=request.getSession().getAttribute("username")%>" disabled>
            <span class="style2"> &nbsp;&nbsp;</span><span class="style2"> &nbsp;&nbsp;</span>                                                  </p>
      </div></td>
    </tr>
    <tr>
      <td height="40"><div align="right" class="style3">gender&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; </div></td>
      <td><div align="left">
        <input name="gender" type="text" id="gender" value="<%=request.getSession().getAttribute("gender")%>" maxlength="3" disabled>
</div></td>
    </tr>
    <tr>
     <td height="40"><div align="right" class="style3">old password&nbsp;&nbsp;&nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; </div></td>
       <td><div align="left">
        <html:password property="passwordold"  size="20"/>
      </div></td>
    </tr>
    <tr>
      <td height="40"><div align="right" class="style3">new password&nbsp;&nbsp;&nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; </div></td>
      <td><div align="left">
        <html:password property="password"  size="20"/>
      </div></td>
    </tr>
    <tr>
      <td height="40"><div align="right" class="style3">confirm password&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div></td>
      <td><div align="left">
       <html:password property="passwordconfirm"  size="20"/>
      </div></td>
    </tr>
    <tr>
      <td height="40"><div align="right" class="style3">E_mail&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp;  &nbsp; &nbsp; </div></td>
      <td>        <div align="left">
        <input name="email" type="text" value="<%=request.getSession().getAttribute("email")%>" maxlength="70">      
      </div></td>
    </tr>
    <tr>
      <td height="40"><div align="right" class="style3"> Interest&nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td height="40" colspan="2"><div align="center">
        <textarea name="interests" cols="70" rows="12" ><%=request.getSession().getAttribute("interest")%></textarea>
      </div></td>
    </tr>
    <tr>
      <td height="40"><div align="center">
        <blockquote>
          <blockquote>
            <p align="right">
                <input type="submit" name="Submit" value="Submit">
                <span class="style2">&nbsp; &nbsp; </span> </p>
          </blockquote>
        </blockquote>
      </div></td>
      <td height="40">
        <div align="left">
          <blockquote>
            <p>
              <input type="reset" name="Submit2" value="Reset">
            </p>
          </blockquote>
      </div></td>
    </tr>
  </table>
  </html:form>
  <p class="style1 style2">&nbsp;</p>
</div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -