This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How can we Run the Java Script in struts tags
 
Similar Threads
text field validation
Need Help with binding click events to table rows
Validation not working
How can I enable and disable a single row of textboxes in a table using javascript?
javascript error: object expected