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

📄 html-setters.jsp

📁 jakarta-struts-1.2.4-src
💻 JSP
字号:
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<html:html>
  <head>
    <title>Test struts-html Property Setters</title>
  </head>
  <body>
    <div align="center">
      <h1>Test struts-html Property Setters</h1>
    </div>
    <p>Whatever changes you make to properties should be reflected when the page is redisplayed. Press "Save" to update, or "Cancel" to return to the main menu.</p>
    <html:form action="/html-setters-submit">
      <table border="0" width="100%">
        <tr>
          <th align="center" colspan="4">Scalar Properties</th>
        </tr>
        <tr>
          <th align="right">booleanProperty</th>
          <td align="left">
            <html:checkbox property="booleanProperty" />
          </td>
          <th align="right">nested.booleanProperty</th>
          <td align="left">
            <html:checkbox property="nested.booleanProperty" />
          </td>
        </tr>
        <tr>
          <th align="right">doubleProperty</th>
          <td align="left">
            <html:text property="doubleProperty" size="32" />
          </td>
          <th align="right">nested.doubleProperty</th>
          <td align="left">
            <html:text property="nested.doubleProperty" size="32" />
          </td>
        </tr>
        <tr>
          <th align="right">floatProperty</th>
          <td align="left">
            <html:text property="floatProperty" size="32" />
          </td>
          <th align="right">nested.floatProperty</th>
          <td align="left">
            <html:text property="nested.floatProperty" size="32" />
          </td>
        </tr>
        <tr>
          <th align="right">intProperty</th>
          <td align="left">
            <html:text property="intProperty" size="32" />
          </td>
          <th align="right">nested.intProperty</th>
          <td align="left">
            <html:text property="nested.intProperty" size="32" />
          </td>
        </tr>
        <tr>
          <th align="right">longProperty</th>
          <td align="left">
            <html:text property="longProperty" size="32" />
          </td>
          <th align="right">nested.longProperty</th>
          <td align="left">
            <html:text property="nested.longProperty" size="32" />
          </td>
        </tr>
        <tr>
          <th align="right">stringProperty</th>
          <td align="left">
            <html:text property="stringProperty" size="32" />
          </td>
          <th align="right">nested.stringProperty</th>
          <td align="left">
            <html:text property="nested.stringProperty" size="32" />
          </td>
        </tr>
        <tr>
          <th align="center" colspan="4">Indexed Properties</th>
        </tr>
        <tr>
          <th align="right">intIndexed[0]</th>
          <td align="left">
            <html:text property="intIndexed[0]" size="32" />
          </td>
          <th align="right">nested.intIndexed[0]</th>
          <td align="left">
            <html:text property="nested.intIndexed[0]" size="32" />
          </td>
        </tr>
        <tr>
          <th align="right">intIndexed[1]</th>
          <td align="left">
            <html:text property="intIndexed[1]" size="32" />
          </td>
          <th align="right">nested.intIndexed[1]</th>
          <td align="left">
            <html:text property="nested.intIndexed[1]" size="32" />
          </td>
        </tr>
        <tr>
          <th align="right">stringIndexed[0]</th>
          <td align="left">
            <html:text property="stringIndexed[0]" size="32" />
          </td>
          <th align="right">nested.stringIndexed[0]</th>
          <td align="left">
            <html:text property="nested.stringIndexed[0]" size="32" />
          </td>
        </tr>
        <tr>
          <th align="right">stringIndexed[1]</th>
          <td align="left">
            <html:text property="stringIndexed[1]" size="32" />
          </td>
          <th align="right">nested.stringIndexed[1]</th>
          <td align="left">
            <html:text property="nested.stringIndexed[1]" size="32" />
          </td>
        </tr>
        <tr>
          <td>&#160;</td>
          <td align="right">
            <html:submit>Save</html:submit>
          </td>
          <td align="left">
            <html:reset>Reset</html:reset>
            <html:cancel>Cancel</html:cancel>
          </td>
          <td>&#160;</td>
        </tr>
      </table>
    </html:form>
  </body>
</html:html>

⌨️ 快捷键说明

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