再次补充一下,这个JSP页面:
Vector vecPart=(Vector)session.getAttribute("partList");
TopicDisp partList=null;
if(vecPart!=null)
{
for(int i=0;i<vecPart.size();i++)
{
partList=(TopicDisp)vecPart.get(i);
%>
<tr bgcolor="#CCFFFF">
<td>
<html:multibox property="selectBox"><%=partList.getId()%></html:multibox>
</td>
<td><%=partList.getId()%></td>
<td><%=partList.getTitle()%></td>
<td><%=partList.getContent()%></td>
</tr>
<%
}
}因为这个页面不是最开始的jsp页面,是有通过筛选跳转显示的部分记录;页面的路径上也显示是以 .do结尾的路径;会不会不支持这样的选择;
我创建新的页面里,写个新的:如下
<html:form action="/selectBoxTest.do">
<%for(int i=0;i<5;i++){%>
Multilbox<%=i%>:<html:multibox property="strArray">Value<%=i%></html:multibox><BR>
<%}%>
<html:submit/><html:cancel/>
</html:form>
就能很好的读取我所要的所选的复选框!
请哪位指导一下;
Vector vecPart=(Vector)session.getAttribute("partList");
TopicDisp partList=null;
if(vecPart!=null)
{
for(int i=0;i<vecPart.size();i++)
{
partList=(TopicDisp)vecPart.get(i);
%>
<tr bgcolor="#CCFFFF">
<td>
<html:multibox property="selectBox"><%=partList.getId()%></html:multibox>
</td>
<td><%=partList.getId()%></td>
<td><%=partList.getTitle()%></td>
<td><%=partList.getContent()%></td>
</tr>
<%
}
}因为这个页面不是最开始的jsp页面,是有通过筛选跳转显示的部分记录;页面的路径上也显示是以 .do结尾的路径;会不会不支持这样的选择;
我创建新的页面里,写个新的:如下
<html:form action="/selectBoxTest.do">
<%for(int i=0;i<5;i++){%>
Multilbox<%=i%>:<html:multibox property="strArray">Value<%=i%></html:multibox><BR>
<%}%>
<html:submit/><html:cancel/>
</html:form>
就能很好的读取我所要的所选的复选框!
请哪位指导一下;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货