• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

DisplayTag + PaginatedList + Struts2

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic