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:aleksandr.si...@gmail.com] >>Sent: Tuesday, October 13, 2009 9:25 AM >>To: user@struts.apache.org >>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: user-unsubscr...@struts.apache.org >>For additional commands, e-mail: user-h...@struts.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- 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: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org