Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Ideal solution to pagination (long lists)?

Tom Schneider

2007-01-04

Replies:

For struts2 tags, checkout
https://issues.apache.org/struts/browse/WW-1569

The problem I have with displaytag is that in an effort to satisfy
everyone's needs, it is infinitely configurable. IMHO, that makes it
hard to figure out and hard to use. The other issue we had with display
tags is that with struts2, it isn't backed by a freemarker template.
Every other built-in tag in struts2 is backed by a freemarker template,
which is a much better solution to customization issue. In the simple
case, it will be simple, but it will also let you do the more
complicated scenerio.

Also checkout http://forum.springframework.org/showthread.php?t=33012 if
your using spring.
Tom

Gareth Evans wrote:
> Hi Andrew,
>
> I suggest using displaytag with its external paging and sorting features
>
> http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html
>
> Gareth
>
> Andrew Martin wrote:
>> I am interested to know the ???best??? practice for navigating through
>> long lists. At the moment we have implemented Struts-layout for this
>> purpose. Our implementation currently retrieves the full dataset and
>> uses Struts-layout sorting and navigation pager options to navigate
>> through the results. However the drawback of this approach is in
>> performance as our application will contain long lists.
>>
>> I have read many articles and browsed many forums but haven???t yet
>> been able to find a ???best practice??? or ideal approach.
>>
>> Andrew
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.