• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can we Run the Java Script in struts tags

 
prasad gowda
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<tr id="row<%=i%>" <%=style%>>

<td><s:checkbox name="mileageDateList[<%=i%>].surface" label="surface"
labelposition="top" labelSeparator=" " theme="simple" /></td>
</tr>

for this particular code i'm getting

<tr id="row0" >

<td><input type="checkbox" name="mileageDateList[<%=i%>;].surface" value="true" id="welcome_mileageDateList____i____surface"/>
<input type="hidden" id="__checkbox_welcome_mileageDateList____i____surface" name="__checkbox_mileageDateList[<%=i%>].surface" value="true" /> </td>

please help me to get the value declared inside square braces

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use EL, not scriptlets.

There's no JavaScript in anything you posted.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic