Yes.  I was able to get it working as well by doing the same thing.  I assumed 
incorrectly that struts tags had to be string or int data types.  Note 
java.util.Date is accepted as well.  Makes things real easy.

-B

-----Original Message-----
From: Catalin Croitoru [mailto:[EMAIL PROTECTED]
Sent: Friday, February 25, 2005 6:28 AM
To: Struts Users Mailing List
Subject: Re: How to handle Dates?


I solved this problem with a format key in my application.properties:

application.date_format.short=dd.MM.yyyy
application.date_format.long=dd.MM.yyyy hh:mm:ss

and in presentation layer I use : bean:write. this tag has:  formatKey
or format as atributes.
in my case I use formatKey. if you would like to change the formating
just modify the format in your application.properties.

I hope will help this.


On Fri, 25 Feb 2005 10:45:26 -0000, Bob Arnott <[EMAIL PROTECTED]> wrote:
> Brian McGovern wrote:
> > Hi looking for input on how to approach dates across all
> > levels of my struts app.  Mainly what approach will allow
> > me to handle formatting on the presentation layer.
> >
> > Is there any tag lib available in struts to handle
> > formatting of a date type object ?
> 
> I wrote my own tag to format dates before I came across the Jakarta
> Taglibs. You could try the Date/Time taglib if you don't want to use
> JSTL.
> 
> http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html
> 
> Cheers,
> 
> --
> Bob Arnott
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to