File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Problem with sorting using display tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with sorting using display tag" Watch "Problem with sorting using display tag" New topic

Problem with sorting using display tag

swathi vellanki

Joined: Sep 18, 2007
Posts: 2
I want the userid to be sorted. So I wrote the code like this , but I defined my userid as string in my object.So it is sorting like string.
but want it to be sorted like number.How can I handle that . could any one please help me. Here is my code.

<s:set name="users" value="offices" scope="request"/>
<display:table name=" users " requestURI="" pagesize="${row}" sort="list" id="jobResults" class="candSearchResults" >
<display:column><s:checkbox name="checked"
fieldValue='%{ user. userId}'/></display:column>
<display:column property="user.userId" title="ID" sort="true"/>
<display:column property="user.userName" href="testing.action" paramId="userStatus" paramProperty="user.userId" title="Name" sort="true"/>
I agree. Here's the link:
subject: Problem with sorting using display tag
Similar Threads
DisplayTag Probelm.
Conditional display of DisplayTable of DisplayTag
[DisplayTag] How to make Multi-column header
problem exporting data using Display Tag
struts2 + display tags + maps