AccountEdit.jsp
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:2k
源码类别:
Java编程
开发平台:
Java
- <%-- Page Directives --%>
- <%@ page session="false" errorPage="Error.jsp" import="bible.jsp.*"%>
- <%-- Bean Tags --%>
- <jsp:useBean id="account" class="bible.jsp.AccountBean" scope="request"/>
- <jsp:setProperty name="account" property="*" />
- <% // Test Mode
- if ("true".equals(request.getParameter("testmode"))) {
- account.setTestData(); // Create test data
- } %>
- <html>
- <head>
- <title>Edit Account Information</title>
- <link href="jsp.css" type=text/css rel=stylesheet>
- </head>
- <body>
- <%@ include file="Header.jsp" %>
- <form action="AccountEdit.jsp" method="get" name="prompt" id="prompt">
- <table cellSpacing=1 cellPadding=0 border=0 width="100%">
- <tr>
- <td colspan=2 class="sectionTitle">Edit Account Information</td>
- </tr>
- <tr>
- <td class="columnHead" align=right width="20%">Account Number: </td>
- <td><input type="hidden" name="accountNumber" size="9" maxlength="9"
- value="<jsp:getProperty name="account" property="accountNumber"/>">
- <jsp:getProperty name="account" property="accountNumber"/></td>
- </tr>
- <tr>
- <td class="columnHead" align=right width="20%">Name: </td>
- <td><input type="text" name="accountName" size="40" maxlength="40"
- value="<jsp:getProperty name="account" property="accountName"/>"></td>
- </tr>
- <tr>
- <td class="columnHead" align=right width="20%">Status: </td>
- <td><select name="status">
- <% String status = account.getStatus(); %>
- <option value="A" <%= status == "A" ? "selected" : "" %>>Active
- <option value="I" <%= status == "I" ? "selected" : "" %>>Inactive
- </option></select>
- </td>
- </tr>
- </table>
- <br>
- <input type="Button" value="Submit" onclick="javascript:submit(); return false;">
- </form>
- <%@ include file="Footer.htm" %>
- </body>
- </html>