aspose file tools*
The moose likes Struts and the fly likes How can we Run the Java Script in struts tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How can we Run the Java Script in struts tags" Watch "How can we Run the Java Script in struts tags" New topic
Author

How can we Run the Java Script in struts tags

prasad gowda
Greenhorn

Joined: Aug 17, 2010
Posts: 3
<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

Joined: Sep 29, 2008
Posts: 12617

Use EL, not scriptlets.

There's no JavaScript in anything you posted.
 
jQuery in Action, 2nd edition
 
subject: How can we Run the Java Script in struts tags