- Java code
public class Page { private int totalNum; private List<Book> pageList; private int currentPage; public Page(){ }}
我已经得到了一个Page的对象page,我现在想把它加到request.setAttribute("page", page)中,再通过request.getRequestDispatcher(URL).forward(request, response)转发到result.jsp页面中,然后在result.jsp中循环显示page.pageList的内容,要怎么写啊??
------解决方案--------------------------------------------------------
不要写get el不支持方法调用.!
把get去掉,
直接这样 比如你的bookId的get方法如果是getBookId就写${pl.bookId}
LZ可以去看看javaBean属性的含义.!