Hello, I'm trying to pass a variable to a javascript function within a onclick attribute of html:submit tag, but it doesn't resolve the value of the varieble. This is the code I'm using:
<%String ent = (String)request.getAttribute("entidad"); %> <html:submit property="op" titleKey="boton.ayuda.eliminar" onclick="return eliminar(<%= ent %>)"> <bean:message key="boton.eliminar" /> </html:submit> I also have tryied with: <%String ent = (String)request.getAttribute("entidad"); %> <html:submit property="op" titleKey="boton.ayuda.eliminar" onclick="return eliminar('<%= ent %>')"> <bean:message key="boton.eliminar" /> </html:submit> Any idea will be wellcome... -- View this message in context: http://www.nabble.com/html%3Asubmit-with-a-javascript-variable-on-the-onclick-attribute-tf2435769.html#a6792121 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]