• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

In struts el how to get checkbox status

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In struts el how to get checkbox status with java script, i want to know weather the check box is checked or not
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:
 
reply
    Bookmark Topic Watch Topic
  • New Topic