Thanks, Dave and Suhash. OGNL expression worked fine!

newton.dave wrote:
> 
> cm132005 wrote:
>> How to pass a value from valueStack to a JavaScript function? 
>> 
>> This doesn't work:
>> <s:submit value=" Edit " method="edit" 
>  >           onclick='"doEdit(\'<s:property value="aId"/>\')"' />
> 
> You can't nest custom tags like that; that's not an S2 issue, it's just 
> the way it works. Use OGNL; that's what it's for:
> 
> <s:submit value=" Edit " method="edit" onclick="doEdit('%{aId}')"/>
> 
> Dave
> 
> 
> ---------------------------------------------------------------------
> 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/Passing-a-value-to-JavaScript-from-a-tag-tp23438467p23456174.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

Reply via email to