You can also do dates using the FMT tag of JSTL (Standard tag lib 
available at jakarta.apache.org).

Calle Sollander wrote:
> Hello!
> I'm abit new to struts so forgive me if this is stupid.
> I read Ted Husted's javatip#4
> (http://www.jguru.com/faq/view.jsp?EID=915891) on Jguru about formatting
> using message templates (I have asked this in a reply there but I'm
> unsure if that was the right thing to do so I try here on the list
> instead, I apologize for the double posting).
> I want to show a Date diffrently in diffrent Locales so I put
> departureDate=Depaturedate: {0,date,long} in my properties file.
> But then I realized that the "bean:message" only takes Strings as
> arguments.
> Can anybody explain a good way to format a date?
> I made my own customtag that take a dateformat pattern (ex.
> "yyyy-MM-dd") that I have like this "datum.formatpattern=yyyy-MM-dd" in
> the properties file.
> If this is explained somewhere I would be very happy to get a pointer as
> to where
> 
> Thanks in advance for any help! 
> Regards, Calle
> 
> 
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of
> [EMAIL PROTECTED]
> Sent: den 8 juli 2002 14:31
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [MVC-Programmers] baseBeans site updates
> 
> 
> 
> Any chance that there will be a class in the Chicago area in the near
> future?  I know of at least 10 - 15 people that would be interested in a
> class like this, and I am sure there are many more.
> 
> Bob
> 
> 
> "Vic C." <[EMAIL PROTECTED]> on
> 
> |---------+--->
> |         |   |
> |---------+--->
>  
> 
>>-----------------------------------------------------------------------
> 
> ------------------------------------------------------------------|
>   |
> |
>   |To:     [EMAIL PROTECTED]
> |
>   |cc:
> |
>   |From:   "Vic C." <[EMAIL PROTECTED]>
> |
>   |
> |
>   |Sent by:    [EMAIL PROTECTED]
> |
>   |
> |
>   |
> |
>   |Date:   07/07/2002 11:38 PM
> |
>   |        Please respond to mvc-programmers
> |
>   |Subject:
> [MVC-Programmers] baseBeans site updates
> |
>  
> 
>>-----------------------------------------------------------------------
> 
> ------------------------------------------------------------------|
> 
> 
> 
> 
> Here are some site updates, let me know any comments please.
> 
> http://www.basebeans.com/syllabus.jsp
> http://www.basebeans.com/downloads.jsp
> http://www.basebeans.com/silverstream.jsp
> 
> The class is coming up in 3 weeks in NYC. It will be more on JSTL and
> Java Server Faces with above sample code.
> 
> Vic
> 
> _______________________________________________
> MVC-Programmers mailing list
> [EMAIL PROTECTED]
> http://www.basebeans.com:8081/mailman/listinfo/mvc-programmers
> 
> 
> 
> 
> _______________________________________________
> MVC-Programmers mailing list
> [EMAIL PROTECTED]
> http://www.basebeans.com:8081/mailman/listinfo/mvc-programmers
> 
> _______________________________________________
> MVC-Programmers mailing list
> [EMAIL PROTECTED]
> http://www.basebeans.com:8081/mailman/listinfo/mvc-programmers
> 


_______________________________________________
MVC-Programmers mailing list
[EMAIL PROTECTED]
http://www.basebeans.com:8081/mailman/listinfo/mvc-programmers

Reply via email to