Thai,

I’m not really certain what you’ve got going on, but my guess would be just to have a query where you can plug in a letter, e.g.:

select * from my_table where lower(name) like ‘a%’

Or replace the ‘a%’ with ‘’{0}’’ and use MessageFormat.format() to plug each different letter in there at request time.  So clicking A on the index runs the query with ‘a’, clicking B runs the query with B, etc.  Then you can paginate each letter’s subsection, which should be a lot more manageable.

Rick Herrick

[EMAIL PROTECTED]

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thai Dang Vu
Sent: Friday, June 24, 2005 6:04 AM
To: [email protected]
Subject: [displaytag-user] How to build an alphabetical index for displaytag? - Thanks Jay for the paging.banner.group_size hin

 

I am using Struts 1.2. So do you or anybody have any hint for me?

 

Thank you.

Reply via email to