Really? IDon't you have to enclose the entire value in one scriptlet expression? Like this: <logic: iterate ....... indexId="idx" > <html:text property="x" name="y" onclick='<%="lfnSomething(" + idx + ", " + idx2 + ")%>' />
Kjersti |--------+----------------------------------> | | "Avjit Singh Jhajj" | | | <[EMAIL PROTECTED]| | | fmail.com> | | | | | | 09/06/2005 14:07 | | | Please respond to | | | "Struts Users Mailing | | | List" | | | | |--------+----------------------------------> >----------------------------------------------------------------------------------------------------------| | | | To: "Struts Users Mailing List" <user@struts.apache.org> | | cc: [EMAIL PROTECTED] | | Subject: Re: Pass parameter to javascript function | >----------------------------------------------------------------------------------------------------------| You can pass the parameters to the javascript as shown underneath by enclosing the <%=%> in single quotes... <logic: iterate ....... indexId="idx" > <html:text property="x" name="y" onclick="lfnSomething('<%=idx%>',' <%=idx2%>')" /> Avjit On Thu, 09 Jun 2005 [EMAIL PROTECTED] wrote : > >How can I pass parameter in to a javascript function from a <html:text> >tag?? > > >eg: ><logic: iterate ....... indexId="idx" > > <html:text property="x" name="y" onclick="lfnSomething(<%=idx%>)" >/> >... >... > > > >Amitava Basak >ASE >Tata Consultancy Services Limited >Mailto: [EMAIL PROTECTED] >Website: http://www.tcs.com > >Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]