Supriya, I assuming that update() function will return 'true' or 'false'.
So in your jsp page the syntax of using java script will be .... <html:text .... onchange="javascript:return update(...)"> hope this helps. Satish -----Original Message----- From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 3:33 PM To: [EMAIL PROTECTED] Subject: Help with JavaScript in Stuts How does one incorporate onchange JavaScript Handler on a html:text tag? I want onchange="update(1,3,4)" on a html:text tag. 3,4 is a string that comes from the form This is failing :----- <logic:iterate id="actHour" name="currentForm" type="fal.ActivityHour" property="actHourArray"> <html:text size="6" maxlength="4" name="actHour" property ="faHrsDay1" indexed="true" onchange="update(1,<bean:write name="actHour" property="value"/>)"/> <logic:iterate> also tried onchange="update(1,<%=actHour.value%>)" but the scriptlet is transferred as it is. Any suggestions? _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>