📄 entry.vm
字号:
#### Copyright(C) 2002 Javanovic Software (http://www.javanovic.com)#### This library is free software; you can redistribute it and/or## modify it under the terms of the GNU Lesser General Public## License as published by the Free Software Foundation; either## version 2.1 of the License, or (at your option) any later version.#### This library is distributed in the hope that it will be useful,## but WITHOUT ANY WARRANTY; without even the implied warranty of## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU## Lesser General Public License for more details.#### You should have received a copy of the GNU Lesser General Public## License along with this library; if not, write to the Free Software## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA##<doc><![CDATA[<%@ 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" %>#set($s = '$')#set($ob = '{')#set($cb = '}')#if($bean.JavascriptValidation)<html:form method="post" action="/${bean.Name}/save" onsubmit="return validate${bean.Name}Form(this);"><script language="JavaScript">src="${s}${ob}request.contextPath${cb}/template/ValidationScript.jsp"></script>#else<html:form method="post" action="/${bean.Name}/save">#end<html:hidden property="strutsAction"/>]]> <content> <header> <![CDATA[ <c:choose> <c:when test="${s}${ob}requestScope['${util.firstLower($bean.Name)}Form'].map.strutsAction == 1${cb}"> <bean:message key="label.add"/> </c:when> <c:otherwise> <bean:message key="label.edit"/> </c:otherwise> </c:choose> $bean.Name ]]> </header> <table> <header/> <![CDATA[<c:choose> <c:when test="${s}${ob}requestScope['${util.firstLower($bean.Name)}Form'].map.strutsAction == 1${cb}">]]>#foreach($pk in $bean.PrimaryKey.Column)#if($pk.Type != "auto") <row> <title><![CDATA[<bean:message key="${bean.Name}.${pk.Name}"/>]]></title> <value><![CDATA[$util.strutsField($pk, $bean.Name)]]></value> </row>#end#end <![CDATA[</c:when>]]> <![CDATA[<c:otherwise>]]>#foreach($pk in $bean.PrimaryKey.Column) <![CDATA[<html:hidden property="$pk.Name"/>]]> <row> <title><![CDATA[<bean:message key="${bean.Name}.${pk.Name}"/>]]></title> <value><![CDATA[<bean:write name="${util.firstLower($bean.Name)}Form" property="$pk.Name"/>]]></value> </row>#end <![CDATA[</c:otherwise></c:choose>]]>#foreach($attr in $bean.Attribute.Column) <row> <title><![CDATA[<bean:message key="${bean.Name}.${attr.Name}"/>]]></title> <value><![CDATA[$util.strutsField($attr, $bean.Name)]]></value> </row>#end <footer> <![CDATA[ <logic:messagesPresent> <bean:message key="errors.header"/> <ul> <html:messages id="error"> <li> <bean:write name="error"/> </li> </html:messages> </ul> <hr/> </logic:messagesPresent> ]]> </footer> </table> <footer>#if($bean.JavascriptValidation)#set($onclickfalse=' onclick="bCancel=false;"')#set($onclicktrue=' onclick="bCancel=true;"')#end <![CDATA[ <html:submit$!onclickfalse> <bean:message key="label.save"/> </html:submit> <html:cancel$!onclicktrue> <bean:message key="label.cancel"/> </html:cancel> ]]> </footer> </content><![CDATA[</html:form>]]></doc>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -