struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benz <ben...@yahoo.com>
Subject html:select javascript onchange passing parameter problem
Date Wed, 10 Oct 2007 03:19:20 GMT

this is my part of jsp:
....
<logic:iterate id="loop" indexId="idx" name="data">
....
  <html:select name="loop" property="sts_1" onchange="checkStsCombo(this,
'hasil_1', '<%=idx%>');">
  ...
  </html:select>
...
</logic:iterate>
...

I get the html result:
...
  <select name="sts_1" onchange="checkStsCombo(this, 'hasil_1',
'<%=idx%>');">
...

The '<%=idx%>' text in jsp should be rendered as the value of idx valu which
is such as '0','1',etc.
Can anybody tell me why it doesn't works?

Best Regards,

Benz
-- 
View this message in context: http://www.nabble.com/html%3Aselect-javascript-onchange-passing-parameter-problem-tf4598318.html#a13128698
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message