Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

sorting table in a jsp

807606May 14 2007 — edited May 15 2007
Hello All,

I want to sort a result set by column name...I'm using MVC pattern ....so I have an if clause to decide the sorting order as:

<c:if test="${sort == asc}">
Student
</c:if>
<c:if test="${sort == desc}">
Student
</c:if>
I'm using a method in my action which sorts the given list ...so my question is how can i save the resultant List to be sorted ...if I put in request ...it can be displayed only one time and can i keep that in session....or is there any other better way to do this....


Thanks,
Maithri
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 12 2007
Added on May 14 2007
11 comments
2,456 views