[EMAIL PROTECTED] a écrit :
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 + ")%>'
/>


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%>')"
/>


You can even use the ${} notation if you are using JSP 2.4 (IIRC), like this :

<logic:iterate ... indexId="idx">
  <html:text property="x" name="y"
             onclick="lfnSomething('${idx}', '${idx2}')"/>

--
Stéphane Zuckerman

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to