📄 copy of createformbeanform.jsp
字号:
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ page import = "org.apache.struts.config.*, org.apache.struts.action.*, Jt.DAO.*, Jt.wizard.struts.*, Jt.*" %>
<c:if test="${jtReply != null}">
<c:set var="formBeanForm" value="${jtReply}" scope="session" />
</c:if>
<html:form action= "CreateFormBean?jtMsgId=CREATE" >
<fieldset>
<legend>DynaActionForm</legend>
<br />
<label for="name">*Name: </label>
<html:text property="name" size="50" />
<br />
<br />
<label>*Type: </label>
<html:text property="type" size="50"/>
<br />
<br />
<table >
<thead>
<tr><th>*name</th><th>*type</th><th>default value</th>
</tr>
</thead>
<tbody id="table">
<logic:iterate id="mappings" name="formBeanForm" property="mappings" >
<c:if test="${mappings.name!=null}">
<tr>
<td><html:checkbox name="mappings" property="required" indexed="true"/></td>
<td><html:text name="mappings" property="name" indexed="true"/></td>
<td>
<html:select name="mappings" property="type" indexed="true">
<html:option value="java.lang.String">java.lang.String</html:option>
<html:option value="java.lang.Boolean">java.lang.Boolean</html:option>
</html:select>
<td><html:text name="mappings" property="initial" indexed="true"/></td>
<td><html:text name="mappings" property="minlength" size="3" indexed="true"/></td>
<td><html:text name="mappings" property="maxlength" size="3" indexed="true"/></td>
<td><html:text name="mappings" property="mask" indexed="true"/></td>
</td>
</tr>
</c:if>
</logic:iterate>
</tbody>
</table>
<br />
<hr />
<table width="100%">
<tr>
<td>
<html:submit />
</td>
<td>
<html:cancel />
</td>
<td align="right">
<html:button value="Add Attribute" property="name" onclick="jtAddTableRow ('mappings');"/>
</td>
</tr>
</table>
</fieldset>
</html:form>
<%
/*
int i;
FormBeanForm form = (FormBeanForm)
session.getAttribute ("formBeanForm");
JtMessage msg = new JtMessage (FormBeanForm.RESET);
JtFactory factory = new JtFactory ();
DAOMapping mappingArray[] = null;
if (form != null)
factory.sendMessage (form, msg);
*/
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -