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

Reply via email to