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

Reply via email to