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

📄 entry.jsp

📁 Java企业级开发项目实践,这是他的附光盘
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>

<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>


<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/jstl-core.tld" prefix="c" %>
<html:form method="post" action="/Client/save">
<html:hidden property="strutsAction"/>

  <table bgcolor="#666666" cellpadding="1" cellspacing="0" border="0" width="500">
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="500">
<tr>
<td bgcolor="#fecc51">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="500">
  <tr>
<td bgcolor="#d6e0ed">

    <c:choose>
      <c:when test="${requestScope['clientForm'].strutsAction == 1}">
        <bean:message key="label.add"/>
      </c:when>
      <c:otherwise>
        <bean:message key="label.edit"/>
      </c:otherwise>
    </c:choose>客户

  </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="5%"></td><td width="19%"></td><td width="76%"></td>
</tr>
  <tr>
<td>
<table bgcolor="#f2f2f2" width="500" cellspacing="0" border="0">
    <tr bgcolor="#FFFFFF">
<td width="5%"></td><td width="19%"></td><td width="76%"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="5%"></td><td width="19%"></td><td width="76%"></td>
</tr>
    <c:choose>
      <c:when test="${requestScope['clientForm'].strutsAction == 1}">
    <tr>
<td width="5%"></td><td width="19%"><b><bean:message key="Client.clientname"/></b></td><td width="76%"><html:text property="clientname" size="50"/></td>
</tr>
    <tr>
<td width="5%"></td><td width="19%"><b><bean:message key="Client.classname"/></b></td><td width="76%"><html:text property="classname" size="50"/></td>
</tr>
    </c:when>
    <c:otherwise>
    <html:hidden property="clientname"/>
    <tr>
<td width="5%"></td><td width="19%"><b><bean:message key="Client.clientname"/></b></td><td width="76%"><bean:write name="clientForm" property="clientname"/></td>
</tr>
    <html:hidden property="classname"/>
    <tr>
<td width="5%"></td><td width="19%"><b><bean:message key="Client.classname"/></b></td><td width="76%"><bean:write name="clientForm" property="classname"/></td>
</tr>
    </c:otherwise></c:choose>
    <tr>
<td width="5%"></td><td width="19%"><b><bean:message key="Client.address"/></b></td><td width="76%"><html:text property="address" size="50"/></td>
</tr>
    <tr>
<td width="5%"></td><td width="19%"><b><bean:message key="Client.mail"/></b></td><td width="76%"><html:text property="mail" size="50"/></td>
</tr>
    <tr>
<td width="5%"></td><td width="19%"><b><bean:message key="Client.phone"/></b></td><td width="76%"><html:text property="phone" size="20"/></td>
</tr>
    <tr>
<td width="5%"></td><td width="19%"><b><bean:message key="Client.http"/></b></td><td width="76%"><html:text property="http" size="50"/></td>
</tr>
    <tr bgcolor="#FFFFFF">
<td width="5%"></td><td width="19%"></td><td width="76%">

              <logic:messagesPresent>
                <bean:message key="errors.header"/>
                <ul>
                  <html:messages id="error">
                    <li>
                      <bean:write name="error"/>
                    </li>
                  </html:messages>
                </ul>
                <hr/>
              </logic:messagesPresent>

    </td>
</tr>
  </table>
</td>
</tr>
  <tr>
<td>
<table bgcolor="#f2f2f2" height="30" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr align="right" valign="middle">
<td>

      <html:submit>
        <bean:message key="label.save"/>
      </html:submit>
      <html:cancel>
        <bean:message key="label.cancel"/>
      </html:cancel>

  </td>
</tr>
</table>
</td>
</tr>
  </table>
</td>
</tr>
</table>

</html:form>


⌨️ 快捷键说明

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