Did you mean this variant?:
<s:set var="ognlFieldName" value='%{\"<%=
jspContext.getAttribute("fieldName", PageContext.PAGE_SCOPE) %>\"}'/>
This code does NOT work. So the question still open.
Mike Baranski-2 wrote:
>
> Why not use this?
> http://struts.apache.org/2.1.6/docs/set.html
>
>>-----Original Message-----
>>From: Alex Siman [mailto:[email protected]]
>>Sent: Tuesday, October 13, 2009 9:25 AM
>>To: [email protected]
>>Subject: Re: How to get value of tag attribute from OGNL?
>>
>>
>>OK, I figured out how to get value of tag attribute in JSP:
>>
>> <%= jspContext.getAttribute("fieldName", PageContext.PAGE_SCOPE)
>>%>
>>
>>Now I need to put this value into some OGNL variable, say
>>'#ognlFieldName',
>>to get access to this value from Struts2 tags.
>>
>>So, how to get access to jspContext from OGNL or at least Java code?
>>--
>>View this message in context: http://www.nabble.com/How-to-get-value-of-
>>tag-attribute-from-OGNL--tp25862967p25872856.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]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://www.nabble.com/How-to-get-value-of-tag-attribute-from-OGNL--tp25862967p25873140.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]