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

📄 enteruserinfo.jsp

📁 <Java网络程序设计 J2EE>随书源码
💻 JSP
字号:
<jsp:useBean id="userUseBean" class="com.sun.j2ee.workflow.control.web.UserUseBean" scope="session"></jsp:useBean>
<jsp:useBean id="userBean" class="com.sun.j2ee.workflow.user.model.UserModel" scope="request"></jsp:useBean>
<P align="center"><BR><BR>
Please Enter the Information for the User You Want to Create</P>
<P>
	<%
	 String userID = request.getParameter("user_ID"); 
	%>
   
<!-- this does not work on netscape
<FORM action="createuser" enctype="multipart/form-data">
-->
<FORM action="createuser" >
<CENTER>
<TABLE border="0" cellspacing=1 bgcolor="#e0d0b0">
  <TBODY bgcolor="white">



    <% if(userID!=null)
    {
	userBean = userUseBean.getUser(userID);
	pageContext.setAttribute("userBean",userBean, pageContext.REQUEST_SCOPE);
    %>

    <INPUT type="HIDDEN" name="user_ID" value = "<%= userID%>" >

    <TR>
      <TD nowrap width="142">User ID <FONT color="#ff0000"></FONT></TD>
      <TD width="471"><%=userID%></TD>
    </TR>

    <TR>
      <TD nowrap width="142">Password <FONT color="#ff0000">*</FONT></TD>
      <TD width="471"><INPUT size="20" type="password" maxlength="30" name="password" value="<jsp:getProperty name="userBean" property="password"/>" /> </TD>
    </TR>

    <TR>
      <TD nowrap width="142">First Name <FONT color="#ff0000">*</FONT></TD>
      <TD width="471"><INPUT size="20" type="text" maxlength="30" name="f_name" value="<jsp:getProperty name="userBean" property="f_name"/>" /> </TD>
    </TR>
    <TR>
      <TD nowrap width="142">Last Name <FONT color="#ff0000">*</FONT></TD>
      <TD width="471"><INPUT size="20" type="text" maxlength="30" name="l_name" value="<jsp:getProperty name="userBean" property="f_name"/>" /> </TD>
    </TR>
    <TR>
      <TD nowrap width="142">Location <FONT color="#ff0000"></FONT></TD>
      <TD width="471"><INPUT size="20" type="text" maxlength="60" name="location" value="<jsp:getProperty name="userBean" property="location"/>" /> </TD>
    </TR>
    <TR>
      <TD nowrap width="142">Phone <FONT color="#ff0000"></FONT></TD>
      <TD width="471"><INPUT size="20" type="text" maxlength="60" name="phone" value="<jsp:getProperty name="userBean" property="phone"/>" /> </TD>
    </TR>
    <TR>
      <TD nowrap width="142">E-Mail <FONT color="#ff0000">*</FONT></TD>
      <TD width="471"><INPUT size="20" type="text" maxlength="60" name="email" value="<jsp:getProperty name="userBean" property="email"/>" /> </TD>
    </TR>

    <TR>
      <TD nowrap width="142">Title <FONT color="#ff0000"></FONT></TD>
      <TD width="471"><INPUT size="20" type="text" maxlength="60" name="title" value="<jsp:getProperty name="userBean" property="title"/>" /> </TD>
    </TR>

    <TR>
      <TD>Role</TD>
      <TD><SELECT name="role" size="1" class="content-fxd-sm">
            <option value="<jsp:getProperty name="userBean" property="role" />" selected><jsp:getProperty name="userBean" property="role" /></option>
            <option value="Manger">Manager</option>
            <option value="Engineer">Engineer</option>
            <option value="Other">Other</option>
      </SELECT></TD>
    </TR>

    <INPUT type="HIDDEN" name="actiontype" value ="UPDATE_USER">

    <%
    }
    else
    {
    %>
    <INPUT type="HIDDEN" name="actiontype" value ="CREATE_USER">
    <TR>
      <TD nowrap width="142">User ID <FONT color="#ff0000">*</FONT></TD>
      <TD width="471"><INPUT size="20" type="text" maxlength="30" name="user_ID"  /></TD>
    </TR>

    <TR>
      <TD nowrap width="142">Password <FONT color="#ff0000">*</FONT></TD>
      <TD width="471"><INPUT size="20" type="password" maxlength="30" name="password"  /></TD>
    </TR>

    <TR>
      <TD nowrap width="142">First Name <FONT color="#ff0000">*</FONT></TD>
      <TD width="471"><INPUT size="20" type="text" maxlength="30" name="f_name"  /> </TD>
    </TR>
    <TR>
      <TD nowrap width="142">Last Name <FONT color="#ff0000">*</FONT></TD>
      <TD width="471"><INPUT size="20" type="text" maxlength="30" name="l_name" /> </TD>
    </TR>
    <TR>
      <TD nowrap width="142">Location <FONT color="#ff0000"></FONT></TD>
      <TD width="471"><INPUT size="20" type="text" maxlength="60" name="location" /> </TD>
    </TR>
    <TR>
      <TD nowrap width="142">Phone <FONT color="#ff0000"></FONT></TD>
      <TD width="471"><INPUT size="20" type="text" maxlength="60" name="phone" /> </TD>
    </TR>
    <TR>
      <TD nowrap width="142">E-Mail <FONT color="#ff0000">*</FONT></TD>
      <TD width="471"><INPUT size="20" type="text" maxlength="60" name="email" /> </TD>
    </TR>

    <TR>
      <TD nowrap width="142">Title <FONT color="#ff0000"></FONT></TD>
      <TD width="471"><INPUT size="20" type="text" maxlength="60" name="title" /> </TD>
    </TR>

    <TR>
      <TD>Role</TD>
      <TD><SELECT name="role" size="1" class="content-fxd-sm">
            <option value="Manager">Manager</option>
            <option value="Engineer">Engineer</option>
            <option value="Other">Other</option>
      </SELECT></TD>
    </TR>

    <%
    }
    %>
  </TBODY>
</TABLE>
</CENTER>
<CENTER><BR>
<INPUT type="image" src="../images/button-submit2.gif" name="submit"></CENTER>


</FORM>

⌨️ 快捷键说明

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