aspose file tools*
The moose likes Struts and the fly likes use of javascript in struts 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 "use of javascript in struts" Watch "use of javascript in struts" New topic
Author

use of javascript in struts

Prams Coolkarni
Greenhorn

Joined: Nov 01, 2005
Posts: 12
Hi guys, i have been working on struts recently and using some javascript for the validation process of certain fields. I wanted to know that how can we get the value of indexId specified in the given <logic:iterate> tag of struts in javascript so that, that value can be used by me in the javascript for my validation logic.
SuprajaY Yasoda
Greenhorn

Joined: Oct 17, 2005
Posts: 17
think it helps

alert(document.FBRePre["arrSelectedAO["+i+"]"][document.FBITT["arrSelectedAO["+i+"]"].selectedIndex].value)


FBRePre is name of the form
arrSelectedAO is name of the field in form
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: use of javascript in struts