jsp代码: <nested:notEmpty property="selectPrjassCol" name="PrjAssActionForm">
<%iRowCount=0;%>
<nested:iterate id="prjassCol" property="selectPrjassCol" indexId="index" type="com.spsoft.project.web.actions.subAccManage.prjPayOut.CommonUseVO" >
<%iRowCount++;%>
<tr id="tr_PlusAttr|<%=iRowCount%>" align="left" class="fieldLabelNeeded" onClick="PlusAttr_OnClick(this);"> <nested:equal value="Y" name="prjassCol" property="subItemMandaTory">
* <nested:write property="prjassColName" name="prjassCol" ></nested:write>
</nested:equal>
<nested:notEqual value="Y" name="prjassCol" property="subItemMandaTory">
<nested:write property="prjassColName" name="prjassCol" ></nested:write>
</nested:notEqual> </td>
<td>
<nested:text property="prjassColValue" styleClass="textinput" style="width:0px;"></nested:text> <input name="plusattr_label" type="text" value="<%=prjassCol.getPlusattr_value()%>" class="textinput" style="width:200px;">
<input name="plusattr_value" type="text" value="<%=prjassCol.getPlusattr_value()%>" class="textinput" style="width:0px;">
<select name="plusattr_YN" style="width:60px;">
<option value="Y" <%if(prjassCol.getCommonValue()!=null && prjassCol.getCommonValue().equals("Y"))out.print("selected");%>>是</option>
<option value="N" <%if(prjassCol.getCommonValue()!=null && prjassCol.getCommonValue().equals("N"))out.print("selected");%>>否</option>
</select>
<select name="plusattr_SPBZ" style="width:60px;">
<option value="01">输电</option>
<option value="02">配电</option>
<option value="03">公用</option>
<option value="04">营销</option>
</select>
<input name="plusattr_btn" type="button" property="button" class="blueButtonCss" value="…" style= "width:20px; margin-right:0px;" >
<input name="plusattr_btnDate" type="button" property="button" class="blueButtonCss" value="…" style= "width:20px; margin-right:0px;" >
</td>
</tr>
</nested:iterate>
</nested:notEmpty>
<%iRowCount=0;%>
<nested:iterate id="prjassCol" property="selectPrjassCol" indexId="index" type="com.spsoft.project.web.actions.subAccManage.prjPayOut.CommonUseVO" >
<%iRowCount++;%>
<tr id="tr_PlusAttr|<%=iRowCount%>" align="left" class="fieldLabelNeeded" onClick="PlusAttr_OnClick(this);"> <nested:equal value="Y" name="prjassCol" property="subItemMandaTory">
* <nested:write property="prjassColName" name="prjassCol" ></nested:write>
</nested:equal>
<nested:notEqual value="Y" name="prjassCol" property="subItemMandaTory">
<nested:write property="prjassColName" name="prjassCol" ></nested:write>
</nested:notEqual> </td>
<td>
<nested:text property="prjassColValue" styleClass="textinput" style="width:0px;"></nested:text> <input name="plusattr_label" type="text" value="<%=prjassCol.getPlusattr_value()%>" class="textinput" style="width:200px;">
<input name="plusattr_value" type="text" value="<%=prjassCol.getPlusattr_value()%>" class="textinput" style="width:0px;">
<select name="plusattr_YN" style="width:60px;">
<option value="Y" <%if(prjassCol.getCommonValue()!=null && prjassCol.getCommonValue().equals("Y"))out.print("selected");%>>是</option>
<option value="N" <%if(prjassCol.getCommonValue()!=null && prjassCol.getCommonValue().equals("N"))out.print("selected");%>>否</option>
</select>
<select name="plusattr_SPBZ" style="width:60px;">
<option value="01">输电</option>
<option value="02">配电</option>
<option value="03">公用</option>
<option value="04">营销</option>
</select>
<input name="plusattr_btn" type="button" property="button" class="blueButtonCss" value="…" style= "width:20px; margin-right:0px;" >
<input name="plusattr_btnDate" type="button" property="button" class="blueButtonCss" value="…" style= "width:20px; margin-right:0px;" >
</td>
</tr>
</nested:iterate>
</nested:notEmpty>
解决方案 »
- jsp:param 字符编码问题 求高手解答
- Can not find the tag library descriptor for "http://struts.apache.org/tags-bean"
- struts这些框架的标签是怎么解析的?
- 我的JDK文档没有索引和搜索功能
- <bean:write>标签怎样获取数组的值?
- ejb(类和说明xml)开发完成之后是不是可以移植到任何J2EE服务器,需要具体服务器的库或设置吗?
- java 动态定义变量问题
- 用过Eclipse+Tomcat+lomboz的请看一下
- 在windows xp 下配置tomcat 5.0 和apache 2.0 的问题
- EJB相关的培训
- 换装myeclipse5.5后的问题
- struts+spring+hibernate中DAO类中如何自己写删除函数?
为其中的内容分配内存。
在外面包括action里再构造子对象,并对其赋值是没有用的,否则jsp显示可以,一提交就挂。但这样一来,list就失去了动态属性。不知道有没有什么更好的办法。具体原因没有研究,可能要去扒struts代码了。