我在controller中得到一个list<object>
@ModelAttribute("contentChangeList")
public List<Content> populateContentList(@RequestParam("userId") String userId,
ModelMap model) {
List<Content> contentList=null;
try {
contentList=companyBo.ContentChangeList(company.getId());
//System.out.println(contentList.size());
model.addAttribute("contentList", contentList);
} catch (Exception e) {
e.printStackTrace();
}
return contentList;
}
然后在jsp页面中:
<c:forEach var="content" begin="0" items="${contentChangeList}">
......
</c:forEach>
可以获取到这个list集合中的属性,现在想把这个list集合传递到另外一个页面中,也就是要在另一个controller中获取这个list集合,该如何实现呢,哪位朋友给详细解说下,最好有代码,普通的string类型的传递很简单,但是这个list集合该怎莫传递呢?非常感谢!!急求