I have a custom tag file called with:
<help:date dateField="death.deathDate" label="Date of Death (dd-MM-yyyy)"/>
Inside the tag I want to have:
<s:date name="${dateField}.date" var="dt" format="${dateField}.format" />
<s:textfield value="%{#dt}"/>
However, EL security doesn't allow for expressions in the s:date tag. I am
failing to make the s:date get the name from death.deathDate.date field.
I've tried several alternatives in the name attribute of date:
%{#attr.dateField}.date, %{attr.dateField}.date, and I even tried:
<s:set var="aaa" >${dateField}.date</s:set>
<s:date name="%{#aaa}" var="dt" />
None works. Can anyone point me to the right format?
--
View this message in context:
http://old.nabble.com/How-can-one-use-OGNL-on-custom-.tag-files--tp27880257p27880257.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]