写成多个filefrom,多次提交,好象不支持数组
解决方案 »
- 有谁做过B/S的URU4500指纹仪的二次开发
- remove 元素时抛异常 java.util.ConcurrentModificationException
- class not found:javax/xml/rpc/Service,该用什么JAR包啊?
- servlet httpservlet genericservlet之间的关系
- SQL问题,求大神解决~!!
- 对clob字段分页,急!!!(有实际作用的给50分)
- 天哪,倒底有没有人可以帮我解决一下啊!?100分
- weblogic+ejb开发实际问题?请教各位都是怎么做的?
- 再问有关“包”的问题,请教高手!
- WEBLOGIC里配连接池时的ACLName是什么意思?
- com.sun.enterprise这个包在什么地方?
- XML(thanks a lot)
public FormFile[] getNewFileList() {
return this.newFileList;
}
<logic:iterate id="myBean1" name="myBean" property="files" indexId="index" scope="session">
<td width="50%">
<html:file property='<%="newFileList[" + (java.lang.Integer) pageContext.findAttribute("index") + "]"%>' size="30"></html:file>
</td>
</logic:iterate>
ACTIONFORM:
private FormFile[] newFileList;
public void setNewFileList(FormFile[] newFileList) {
this.newFileList = newFileList;
}
public FormFile getNewFileList(int i) {
return this.newFileList[i];
}
thanks all!!!
<html:file property="imagefile" />
<html:file property="imagefile" />
而且这些表单是通过javascript动态创建的,个数不定,怎么办呢
<html:file property="imagefile[1]" />要对应ACTIONFORM中的imagefile[1]。
这样生成的控件在JAVASCRIPT中不好控制。
如果找出好的解决办法希望能通知一声。[email protected],谢了。