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

📄 form.jsp

📁 jakarta-struts-1.2.4-src
💻 JSP
字号:
<%--
/**
 * Data entry page.
 *
 * @version $Revision: 1.3 $ $Date: 2004/01/18 13:43:08 $
 */
--%>

<%@ page language="java" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>

<html:html>
  <head>
   <html:base/>
   <link rel="stylesheet" type="text/css" href="../../styles/global.css" />
   <title>Articles - Article Entry Form</title>
  </head>
  <body>
    <table class="parent">
      <tr>
        <td>
          <table class="child">
            <tr>
              <td colspan="3">
                <html:errors/>
              </td>
            </tr>
            <html:form action="/admin/Store">
              <tr> 
                <td align="right" nowrap>Title:</td>
                <td align="left" colspan="2">
                  <html:text property="title" size="50" 
			maxlength="255" accesskey="T"/>
                </td>
              </tr>
              <tr> 
                <td align="right" nowrap>Author:</td>
                <td align="left">
                  <html:text property="creator" size="30" 
			maxlength="75" accesskey="A"/>
                </td>
                <td align="left">
                  Full name of person who orginated the article.
                </td>
              </tr>
              <tr> 
                <td align="right" nowrap>Article:</td>
                <td align="left" colspan="2">
		<!-- The Struts html:textarea tag does not support wrapping -->
		<!-- so we use this trick instead -->
                  <textarea name="content" rows="12" cols="50" 
			accesskey="a" tabindex="2" wrap="soft">
                    <bean:write name="articleForm" property="content"/>
                  </textarea>
                </td>
              </tr>
              <tr> 
                <td align="right" nowrap>Contributed:</td>
                <td align="left">
                  <html:text property="contributedText" size="30" 
			maxlength="75" accesskey="A"/>
                </td>
                <td align="left">
                </td>
              </tr>              
              <tr> 
                <td align="right" nowrap>Contributor:</td>
                <td align="left">
                  <html:text property="contributor" size="30" 
			maxlength="75" accesskey="A"/>
                </td>
                <td align="left">
                </td>
              </tr>
              <tr>
                <td align="right" nowrap>Article ID:</td>
                <logic:notPresent name="articleForm" property="article">
                  <td align="left"><i>
                    <html:hidden property="article"/>
                    not assigned
                  </i></td>
                </logic:notPresent>
                <logic:present name="articleForm" property="article">
                  <td align="left">
                    <html:hidden property="article"/>
                    <bean:write name="articleForm" property="article"/>
                  </td>
                </logic:present>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td colspan="3" align="right">
                  <html:submit accesskey="S">
                    SAVE
                  </html:submit>
                  <html:cancel  accesskey="C">
                    CANCEL
                  </html:cancel>
                </td>
              </tr>
              <html:hidden property="key"/>
            </html:form>
          </table>
        </td>
      </tr>
      <tr>
        <td class="options">
          <html:link forward="done" accesskey="D">
            DONE
          </html:link>
        </td>
      </tr>
    </table>
  </body>
</html:html>

⌨️ 快捷键说明

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