<core:forEach var="item" varStatus="status" begin="1900" end="1910">
${helper.selected.birthYear[status.index]}${status.index }
</core:forEach>
这是里面抽出问题最关键的一段 helper.selected.birthYear是一个map,我想根据一个循环得到的索引来获得map中相应的元素,但是上面的代码始终无法取得map中的数据,但只要动态索引变成定值像1908什么的就一点问题没有,有大神知道怎么解决吗?JSP
${helper.selected.birthYear[status.index]}${status.index }
</core:forEach>
这是里面抽出问题最关键的一段 helper.selected.birthYear是一个map,我想根据一个循环得到的索引来获得map中相应的元素,但是上面的代码始终无法取得map中的数据,但只要动态索引变成定值像1908什么的就一点问题没有,有大神知道怎么解决吗?JSP
解决方案 »
- struts2拦截器捕获异常
- 求救:jsp项目发布后url传中文值出问题
- 代码怎么写
- 找一个诸如int id = Ingerge.parseInt(request.getParameter("xx"));功能的类...
- 各位:在Struts Menu中出现如下问题,请帮忙忙,如何解决谢谢
- 在struts2的action中怎么接收对象?
- 4个新手问题,请帮帮我.
- 请高手指教jsp编译错误
- 在tomcat中利用struts构建的web程序,为什么在resin不能用?
- Linux下调用JSP页面产生无法找到Java Beans的错误
- 为什么会报错。。。。
- Cannot find any information on property 'name' in a bean of type 'user.file.test
<c:forEach items="${item.value}" var="it">
${it }<br>
</c:forEach>
</c:forEach>