It's not a secret anymore!*
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 Murach's Java Servlets and JSP this week in the Servlets 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
javascript error: object expected
Need Help with binding click events to table rows
How can I enable and disable a single row of textboxes in a table using javascript?
Validation not working
text field validation