aspose file tools*
The moose likes Struts and the fly likes DisplayTag + PaginatedList + Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "DisplayTag + PaginatedList + Struts2" Watch "DisplayTag + PaginatedList + Struts2" New topic
Author

DisplayTag + PaginatedList + Struts2

sam jsem
Greenhorn

Joined: Mar 12, 2011
Posts: 9
Dear all:

I have a question regarding Struts 2.2.1 and DisplayTag's 1.2. PaginatedList Interface: Why does it not display the results of the partial list? Here are all the necessary details below:

Test.jsp
The following DisplayTag code is in my JSP:



Struts 2 Action's relevant code
In my execute: I go and get data necessary to populate the PartialList implementation.



The above code returns nothing on the display JSP. However, I do have scriplets embedded in the JSP and I can see that the session object 'page' is there, along with the java.util.List which is part of the 'page' object graph. Oddly enough: When I put the 'name' attribute of the 'table' element in the OGNL, , the page returned contains a 'toString()' of the PartialList implementation: PageImpl. I get something like the following when I view the source in my JSP:



However, as you can see, the other two OGNL expressions resolved just fine: ; .

I have read over the documentation, and looked and tried every sort of example on the Web. Can anyone please explain this weird behaviour as I am under heavy time constraints? What am I doing wrong?
 
Consider Paul's rocket mass heater.
 
subject: DisplayTag + PaginatedList + Struts2