I'd suggest putting the format of your dates in your application properities files like so..

store.date.simple=MM-dd-yyyy
store.date.detailed=MM-dd-yyyy h:mm:ss a

And then referencing them from your jsp like this..

<bean:write name="clientLicense" property="createdDate" formatKey="store.date.detailed" bundle="storeResources"/>

Note: We have different bundles so that's why bundle="storeResources"..

This way you can easily change the format in one place (app props) and have it propagate throughout the whole app.


From: "Justin Morgan" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: "Struts Users Mailing List" <user@struts.apache.org>
Subject: RE: The best place for output formats
Date: Thu, 28 Apr 2005 08:36:22 -0500

IMO, when you take away JSTL *and* custom tags *and* Java code escapes from JSP, there's not much left to JSP.




-----Original Message----- From: Rodolfo García Esteban/CYII [mailto:[EMAIL PROTECTED] Sent: Thursday, April 28, 2005 9:28 AM To: user@struts.apache.org Subject: Re: The best place for output formats

Hi,

This is my first idea doing it in the jsp. But in this project we can't
use jstl neither custom tags neither <% java code %> which could be the
solution?

Thanks
________________________
Rodolfo García Esteban
Canal Isabel II
División de Aplicaciones Técnicas
C/ Santa Engracia, 125
Edificio 8
Tel. 91 545 10 00 - Ext. 2128
Fax. 91 545 14 41
_______________________


--------------------------------------------------------------------- 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