File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
 
subject: How can we Run the Java Script in struts tags