newformform.jsp
来自「Java Pattern Oriented Framework (Jt) 是为了」· JSP 代码 · 共 41 行
JSP
41 行
<%@ 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" %>
<%@ page import = "org.apache.struts.action.*, Jt.DAO.*" %>
<html:form action="CreateForm">
<fieldset>
<legend> New Struts Form </legend>
<br />
<label>Package:</label>
<html:text property="pack" size ="50" /> <br /> <br />
<label>Class Name:</label>
<html:text property="className" size ="50" /> <br /> <br />
<label>Form Name:</label>
<html:text property="formName" size ="50" /> <br /> <br />
<label>DynaActionForm ?</label>
<html:checkbox property="dynaActionForm" /> <br /> <br />
<hr />
<html:submit />
</fieldset>
</html:form>
<%
org.apache.struts.action.DynaActionForm form = (org.apache.struts.action.DynaActionForm)
session.getAttribute ("dynamicForm");
if (form != null) {
form.set ("dynaActionForm", new Boolean (false));
}
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?