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

📄 updateformbeanform.jsp

📁 Java Pattern Oriented Framework (Jt) 是为了实现Java快速开发的面向模式的框架。
💻 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="UpdateFormBean?jtMsgId=UPDATE" >
  <fieldset>

    <legend> Update Form Bean </legend>
    <br />
    <label>*Name:</label>
    <html:text property="name" size="50" readonly="true"/>
    <br />
    <br />
    <label>*Type: </label>
    <html:text property="type" size="50"/>
    <br />
    <br />



<%--<c:if test="${formBeanForm.dynaActionForm}"> --%>
<table >

<thead>
<c:if test="${formBeanForm.dynaActionForm}">
<tr><th>*Field name</th><th>*Field type</th><th>Default value</th><th>min length</th></th><th>max length</th>
<th>Mask</th><th>Required</th>
</c:if>
<c:if test="${!formBeanForm.dynaActionForm}">
<tr><th>*Field name</th><th>*Type</th><th>min length</th></th><th>max length</th>
<th>Mask</th><th>Required</th>
</c:if>
</tr>
</thead>


<tbody id="table">
       <logic:iterate id="mappings" name="formBeanForm" property="mappings" >

<c:if test="${mappings.name!=null}">
<tr>
    <td><html:text name="mappings" property="name" indexed="true"/></td>
<td><html:select name="mappings" property="fieldType" indexed="true">	
      <html:option value="String">String</html:option>
      <html:option value="boolean">boolean</html:option>
      <html:option value="byte">byte</html:option>
      <html:option value="short">short</html:option>
      <html:option value="integer">integer</html:option>
      <html:option value="long">long</html:option>
      <html:option value="float">float</html:option>	
      <html:option value="double">double</html:option>
      <html:option value="date">date</html:option>	
      <html:option value="email">email</html:option>	
      <html:option value="creditCard">creditCard</html:option>		
    </html:select>
</td>
<c:if test="${formBeanForm.dynaActionForm}">
    <td><html:text name="mappings" property="initial" indexed="true"/></td>
</c:if>
    <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><html:checkbox name="mappings" property="required" indexed="true"/></td>
</tr>
</c:if>


       </logic:iterate>
</tbody>
</table>
<%--</c:if> --%>



     <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', 50);"/>

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

  </fieldset>
</html:form>




<%
  //int i;
  FormBeanForm form = (FormBeanForm)
         session.getAttribute ("formBeanForm");
  JtMessage msg = new JtMessage (DAODefinitionForm.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 + -