You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Flemming Seerup <bp...@flemmingseerup.dk> on 2002/08/07 14:37:52 UTC
Bean values in "onclick", how?
Hi,
I have a submit button, which has to call a javascript function before
submitting (on the onclick event), AND it has to parse the value of the
element bound to the button, but how?
<html:submit onclick="javascript:prepareAction('EDIT', <bean:write
name=element property="elementId"/>);">
<bean:message key="editCaption"/>
</html:submit>
the <bean:write name=element property="elementId"/> works fine, but not
inside the html:submit tag, so what do I do?
/Flemming
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>