| Author |
struts 1.2, Display result list based on the index
|
Vicky Vijay
Ranch Hand
Joined: Apr 23, 2008
Posts: 125
|
|
Hi,
I'm using struts 1.2,
Let me know, how the below case can be achieved,
Let say,
I have retreived records from the database .. (100 count)
and I need to display records that are available at the index between 20 and 35
How this can be configured/achieved at JSP ?!! instead of handling the list at java code
|
 |
Shankar Tanikella
Ranch Hand
Joined: Jan 30, 2011
Posts: 329
|
|
Hi Vijay,
If you do not want to use the rest of the records for any reason/processing I would prefer to filter the list at DB level itself using 'rowcount'.
|
Have Fun with Java
little,little.. little by little makes a lot..
|
 |
Vicky Vijay
Ranch Hand
Joined: Apr 23, 2008
Posts: 125
|
|
Shankar,
I need more of filtering the data at VIEW Level i.e., JSP tags
Is there any JSTL / STRUTS tag to accomplish this kind of scenario ?
|
 |
Shankar Tanikella
Ranch Hand
Joined: Jan 30, 2011
Posts: 329
|
|
Hi Vijay,
I really do not know what your requirement is, I cant even guess what it could be due to the number 20 & 35 being odd
However, to my knowledge i do not know any available JSTL libraries which can only pick the records from the given index but there are few libraries/taglibs which does more than that. Have you looked into display table and other pagination frameworks available. Even if your requirement is not paginating you can still customize these tags or get an idea on how to implement your custom tag library.
Anyways, if you could shed more details about the business requirement, you might get better and more resolutions.
|
 |
Vicky Vijay
Ranch Hand
Joined: Apr 23, 2008
Posts: 125
|
|
Thanks for your suggestion.
This was the question posted to me by my manager...
that number are just start index (20)... and end index (35)... of the display list...
There is no logic behind these numbers...
|
 |
 |
|
|
subject: struts 1.2, Display result list based on the index
|
|
|