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 In struts el how to get checkbox status Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "In struts el how to get checkbox status" Watch "In struts el how to get checkbox status" New topic
Author

In struts el how to get checkbox status

suneel surya
Greenhorn

Joined: Apr 04, 2006
Posts: 14
In struts el how to get checkbox status with java script, i want to know weather the check box is checked or not
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Remember that JavaScript always acts upon the rendered html sent back to the browser after all variables have been resolved and all custom tags processed. That means you're dealing with a plain HTML <input type="checkbox" > control. The Struts tag attribute property translates to the HTML attribute name. Also, the Struts attribute styleId translates to the HTML attribute id. Therefore, with a tag like this:

you can use the following JavaScript code:


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: In struts el how to get checkbox status