Hi Dale,
On 12 Jan 2008 at 16:12, Dale Newfield wrote:
> Rob Hills wrote:
> > <c:set var="updatedDate"><s:date name="delivery.lastUpdated"
> > format="%{getText('datetime.format')}"/></c:set>
> > <s:label label="%{getText('delivery.lastUpdated')}"
> > value="${#updatedDate}"/>
>
> <c:set var="updatedDate" scope="request"><s:date
> name="delivery.lastUpdated" format="%{getText('datetime.format')}"/></c:set>
> <s:label label="%{getText('delivery.lastUpdated')}"
> value="%{#request.updatedDate}"/>
Thanks for that. That will work for now. I've been hunting for a way of doing
it with just Struts tags (+/- OGNL) but haven't had any luck despite spending
quite a bit of time googling and hunting through the Struts/OGNL docco.
This seems like a bit of a deficiency in Struts to me.
Another thing I have to do in several places in my app is put together stuff
with an iterator and then insert that into an attribute of a Struts tag. Prior
to
this change, it wasn't too messy doing this via a combination of Struts and
JSTL, but now it seems impossible.
One nice thing about JSTL's "set" tag is that you can use it to set quite
complex structures and expressions by placing them between start and end
tags like this:
<c:set var="myComplexStuff">
blah blah
lots of complex structures expressions etc
</c:set>
However, either the <s:set ..> tag doesn't support this functionality, or I've
not been able to get it to do it.
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]