Hi All,

On 11 Jan 2008 at 14:47, Rob Hills wrote:

> I've successfully converted my JSTL expressions...

I spoke a bit to soon on this and would appreciate any tips on a better way (ie 
one that works) of doing the following:

        <c:set var="updatedDate"><s:date name="delivery.lastUpdated" 
format="%{getText('datetime.format')}"/></c:set>
        <s:label label="%{getText('delivery.lastUpdated')}" 
value="${#updatedDate}"/>

This mix of Struts, JSTL etc. was clumsy but at least it was working with 
AppFuse 2.0.  However with the changes to Struts 2 
introduced via AppFuse 2.0.1 it is now broken.  The "value='...'" bit on the 
second line now causes an "attribute value does not 
accept expressions".

What these two lines are trying to achieve is to use the date format in my 
ApplicationResources.properties file and use that to 
format a date value for display.  I'd prefer to retain the "<s:label .." tag in 
the second line as that provides appropriate styling.  It 
would be nice to find a "pure Struts 2" way of doing this.

Any suggestions welcome.

Cheers,
Rob Hills
Waikiki, Western Australia
Mobile +61 (412) 904-357
Fax: +61 (8) 9529-2137

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

Reply via email to