Hi all,
I decided to externally paginate the display tag, by implementing the
org.displaytag.pagination.PaginatedList interface in my struts action.
As I already had all the fields the interface defined (but with
different names), it's only adding some extra getters.
The weirdness comes here:
The PaginatedList is the action itself, so I put in my jsp:
<s:set value="%{[0]}" var="list"/>
<display:table name="list" ...> ...</display:table>
The above didn't work, so I decided to put the following in my action:
public PaginatedList getPaginatedList ( ){ return this; }
and in the jsp,
<display:table name="paginatedList" ...> ...</display:table>
and i worked!!
Can anyone explain why the second code works, but not the first?
Thanks
Si quieres ser más positivo, pierde un electrón
Miguel Ruiz Velasco Sobrino
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]