yes, I tried using JSTL and it didn't work. Maybe I am missing something not 
sure.


Thanks.

>From: Ed Webb <[EMAIL PROTECTED]>
>Reply-To: displaytag-user@lists.sourceforge.net
>To: displaytag-user@lists.sourceforge.net
>Subject: Re: [displaytag-user] sort not working for Date
>Date: Thu, 26 Oct 2006 17:26:40 +0100
>
>
>
>Rick Herrick wrote:
> > Ed Webb wrote:
> >
> >> fea jabi wrote:
> >>
> >>> Thanks for your responses. I appreciate that.
> >>>
> >>> I used the JSTL to format the date. Will it work using that? Do I have
> >>> to
> >>> use decorator itself?
> >>>
> >> Use the Decorator instead
> >>
> >
> > I was actually going to suggest using JSTL for the date format.  That 
>lets
> > the sort work on the date object directly (instead of the text
> > representation of the date), but doesn't require extra code.  I have an
> > adversion to using decorators.  Also, the JSTL date format is easily
> > localizable and easily changeable in a deployed app, whereas changes to
> > code require redeployment or hot-patching of the app.
> >
> > Why would you recommend using the decorator instead?
> >
>  From what I remember from the original post, using the JSTL did not
>allow the dates to be sorted chronologically, they were being sorted
>alphabetically. If the JSTL can be used to format the date and
>DisplayTag can correctly sort the Date objects then that'd be the easier
>option. I think that's already been tried and found to not work which is
>why I suggested a Decorator. I suspect I encountered a similar problem
>when I began working with DisplayTag but it was so long ago now that
>I've forgotten.
>
>Ed!
>
>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job 
>easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>_______________________________________________
>displaytag-user mailing list
>displaytag-user@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/displaytag-user

_________________________________________________________________
Get FREE company branded e-mail accounts and business Web site from 
Microsoft Office Live 
http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to