表示不知道在jsp页面中使用一个类型为数组的javaBean,网上搜索未果,求指教~
例如:
<jsp:useBean id="fileList" class="com.File1" scope="request" >
<jsp:setProperty name="fileList" property="*" />
</jsp:useBean>
以上fileList是一个元素类型为File的数值,怎样引用数组中的某个File呢?
已知以下写法可以了
<%=fileList[0].getPath()%>
但能通过<jsp:getProperty name="fileList"....../>的方法引用吗?
希望给个例子javabeanJSP索引
例如:
<jsp:useBean id="fileList" class="com.File1" scope="request" >
<jsp:setProperty name="fileList" property="*" />
</jsp:useBean>
以上fileList是一个元素类型为File的数值,怎样引用数组中的某个File呢?
已知以下写法可以了
<%=fileList[0].getPath()%>
但能通过<jsp:getProperty name="fileList"....../>的方法引用吗?
希望给个例子javabeanJSP索引
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货