日期:2014-05-17 浏览次数:20608 次
private List<FileObj> fileList = new ArrayList<FileObj>();
public class FileObj {
private String name; //文件名字
private String value; //文件路径
private String id; //自定义Id
private String pid; //自定义父目录Id
.
.
.
<form method="POST" action="${ctx}/admin/file/down.html" name="1392085625823" id="1392085625823">
<input type="hidden" name="fileList[0].name" value="admin.jsp">
<input type="hidden" name="fileList[0].value" value="D:\Program Files\eclipse\apache-tomcat-7.0.32\webapps\shiro-demo\admin.jsp">
<input type="hidden" name="fileList[0].id" value="8f469bff-73df-4cd3-a24e-ffd54ef6ab1e">
<input type="hidden" name="fileList[0].pid" value="c660868e-fe47-4e1f-932c-cdfa6eddf225">
</form>
<s:iterator value="list">
<s:property value="对象的属性名"/>
</s:iterator>
<%@ taglib uri="/struts-tags" prefix="s"%>