rltncustomer.jsp

来自「《Developing Applications with Java and U」· JSP 代码 · 共 89 行

JSP
89
字号
<!-- This JSP will display the contents of the customerValue bean -->

<%@ page language="java" contentType="text/html" %>
<%@ 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" %>
<jsp:useBean id="custVal" scope="request" class="com.jacksonreed.CustomerValue" />
<HTML>
<HEAD>
<TITLE>Remulak Customer Add/Update</TITLE>
</HEAD>
<BODY >

<P><FONT size=6>Remulak Customer Add/Update</FONT></P>

<%-- Output form with submitted values --%>
<form action="rltnUpdate" method="get">
  <table>
    <tr>
      <td>Customer Number:</td>
      <td>
        <input type="text" name="customerNumber"
            value="<jsp:getProperty name="custVal" property="customerNumber"/>">
      </td>
    </tr>
    <tr>
      <td>Prefix:</td>
        <td>
          <input type="text" name="prefix"
            value="<jsp:getProperty name="custVal" property="prefix"/>">
        </td>
    </tr>
    <tr>
      <td>First Name:</td>
        <td>
          <input type="text" name="firstName"
            value="<jsp:getProperty name="custVal" property="firstName"/>">
        </td>
    </tr>
    <tr>
      <td>Middle Init:</td>
        <td>
          <input type="text" name="middleInitial"
            value="<jsp:getProperty name="custVal" property="middleInitial"/>">
        </td>
    </tr>
    <tr>
      <td>Last Name:</td>
        <td>
          <input type="text" name="lastName"
            value="<jsp:getProperty name="custVal" property="lastName"/>">
        </td>
    </tr>
    <tr>
      <td>Suffix:</td>
        <td>
          <input type="text" name="suffix"
            value="<jsp:getProperty name="custVal" property="suffix"/>">
        </td>
    </tr>
    <tr>
      <td>Phone #1:</td>
        <td>
          <input type="text" name="phone1"
            value="<jsp:getProperty name="custVal" property="phone1"/>">
        </td>
    </tr>
    <tr>
      <td>Phone #2:</td>
        <td>
          <input type="text" name="phone2"
            value="<jsp:getProperty name="custVal" property="phone2"/>">
        </td>
    </tr>
    <tr>
      <td>EMail:</td>
        <td>
          <input type="text" name="eMail" size=30
            value="<jsp:getProperty name="custVal" property="EMail"/>">
        </td>
    </tr>

  </table>
<INPUT type="hidden" name="customerId" value="<jsp:getProperty name="custVal" property="customerId"/>">
<INPUT type=submit value="Add/Update Customer" name=action>
</form>
</BODY>
</HTML>

⌨️ 快捷键说明

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