📄 copy of createdaoform.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.*" %>
<c:if test="${jtReply != null}">
<c:set var="daoForm" value="${jtReply}" scope="session" />
</c:if>
<html:form action= "CreateDAO?jtMsgId=GENERATE_DESCRIPTOR">
<fieldset>
<legend> New DAO mapping file </legend>
<br />
<label for="name">Class Name: </label>
<html:text property="name" size="50" />
<br />
<br />
<label>Table Name: </label>
<html:text property="table" />
<br />
<br />
<label>Key(s): </label>
<html:select property="dbkeys" multiple="true" size="4">
<html:optionsCollection property="attributes" value="value" label="label"/>
</html:select>
<br />
<br />
<fieldset>
<legend> Table Mapping (field, database column, enabled?)</legend>
<logic:iterate id="dbmappings" name="daoForm" property="dbmappings" >
<html:text name="dbmappings" readonly="true" property="attribute" indexed="true"/>
<html:text name="dbmappings" property="column" indexed="true"/>
<html:checkbox name="dbmappings" property="enabled" indexed="true"/>
<br />
</logic:iterate><br />
</fieldset>
<br />
<hr />
<html:submit />
<html:cancel />
</fieldset>
</html:form>
<%
int i;
DAODefinitionForm daoForm = (DAODefinitionForm)
session.getAttribute ("daoForm");
DAOMapping mappingArray[] = null;
if (daoForm != null)
mappingArray = (DAOMapping[]) daoForm.getDbmappings ();
if (mappingArray != null)
for (i=0; i<mappingArray.length ; i++) {
mappingArray[i].setEnabled (false);
}
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -