Should not that be: <html:text size="20" property="userId" onchange="javascript:find('<%=value%>')"/></TD>
(note the ' around value) -----Original Message----- From: Shobhana.S, ASDC Chennai [mailto:[EMAIL PROTECTED] Sent: Monday, 15 March 2004 17:27 To: Struts Users Mailing List Subject: help in java script Hi ! I'm getting a problem when i use java script in my struts application. My code runs as follows: <SCRIPT > funtion change(value) { alert(value); } </SCRIPT> <BODY> ... ,,, <% String value="hello";%> <html:text size="20" property="userId" onchange="javascript:find(<%=value%>)"/></TD> the problem is the onchange event is not being called. when i don't pass a scriplet variable the event gets called..say onchange="javascript:find('hello'); it gets callled.. could anyone suggest me how to pass a dynamic value to javascript function in struts? Thank you. Shobhana --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]