I used a Decorator to accomplish this - see the display-examples for
information on this.

Matt

> Thanks for the reply.
> 
> I need to sort the date and format to mm/dd/yy.
> I tried subclassing and overiding toString(), I got the error
> .servlet.jsp.JspException: InvocationTargetException trying to fetch
> property smartRow on bean
> [EMAIL PROTECTED]
> 
> can u help in this regard?
> 
> - Ravi
> 
> -----Original Message-----
> From: Matt Raible [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 2:59 PM
> To: Kumar, Ravi J.
> Subject: Re: [displaytag-user] Sorting date
> 
> > Hi,
> >   I am using diplay tag library to display records from DB.I need to 
> > sort date column using tag libraries. Currenly it is sorting like 
> > basic String sorting and that one I dont need.I wanna sort by date object.
> >  
> > Any solutions?
> > 
> > Thanks, 
> > Ravi Kumar 
> > Email: [EMAIL PROTECTED]
> 
> Use a Date for the property and it should work just fine.  I ended up
> subclassing Date and overriding the toString() method in order to 
> get the format I wanted.


-- Matt Raible, Raible Designs, Morrison CO US
-- Tel: +1 303 979-5340
-- Mob: +1 720 560-8460
-- Fax: +1 508 256-6471
-- Web: http://www.raibledesigns.com


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to