struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zoran Avtarovski <zo...@sparecreative.com>
Subject Re: Paging with DisplayTag and encoded table name
Date Fri, 02 May 2008 01:35:42 GMT
You can implement the org.displaytag.pagination.PaginatedList class and use
any parameters you like. Also helps when dealing with large lists.

Z.


> 2008/5/1 Brad A Cupit <brad@lsu.edu>:
>>> > > I'm curious if there is a neat way to have the page
>>> >  > parameter mapped onto action or something alike
>> >
>> >  You should be able to put a setter on the Action. So, if your url
>> parameter is named pageNum, your action would have a setPageNum() method.
> 
> Sure, that'd have worked. But DisplayTag keeps information about page
> Number in very specific format - "d-<encoded_table_name>-p", so it
> might look like "d-339584-p".
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message