wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can we Run the Java Script in struts tags
 
Similar Threads
How can I enable and disable a single row of textboxes in a table using javascript?
Need Help with binding click events to table rows
javascript error: object expected
Validation not working
text field validation