Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DisplayTag + PaginatedList + Struts2  RSS feed

sam jsem
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!