[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-user
Subject: RE: The best place for output formats
From: "Chad Rosen" <chadrosen () hotmail ! com>
Date: 2005-04-28 18:19:32
Message-ID: BAY101-F360C2A52CC2B9CFDAC4651A4230 () phx ! gbl
[Download RAW message or body]
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" <JMorgan@d2hawkeye.com>
>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:rgarciaesteban@cyii.es]
>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: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic