Michael Jouravlev on 29/11/05 16:54, wrote:
Is any better way of implementing pagination by struts tags.?

You can try <display:table> tag !
You can found it here : http://displaytag.sourceforge.net/

DisplayTag is good, sleek and proven solution. In case you don't want
to use DisplayTag, check this manual page:
http://struts.sourceforge.net/strutsdialogs/mailreader-subscriptions.html

It explains how paging is done in MailReader application implemented
with Struts Dialogs. You do not have to use Struts Dialogs to make use
of this example.

Both Struts Dialogs example and DisplayTag library use session-scoped
data to display in pages.

I just had to implement pagination for a hibernate application and fortunately hibernate allows you to specify the first record you want to see and the maximum number of records you want returned. This allows you get around the need for storing the potentially huge search dataset in the session.

I haven't checked out either the struts dialog pagination or the displaytag, so I'm not sure how they deal with multiple browser windows, but if you are keeping just one session-scoped dataset under one key, then multiple windows will mix up their lists. Guess it depends how open your requirements are.



Adam

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to