This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes how to call a struts action when a checkbox is checked ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to call a struts action when a checkbox is checked ?" Watch "how to call a struts action when a checkbox is checked ?" New topic
Author

how to call a struts action when a checkbox is checked ?

Shajid Johnny
Ranch Hand

Joined: May 15, 2010
Posts: 34

Hello dear members,

I have an entity class Article.java with 3 boolean attributes: spam, miscategorized, prohibited along with some other attributes. I map them to db using Hibernate.

I take user input for the other attributes and save the object. those 3 boolean attributes are set to false initially.

later when the users view the Articles on a jsp page, they see 3 checkboxes: spam, miscategorized, prohibited where they can just check them & the according field will be set to true on the database.

how do I do this? on this view page, the user will not submit any form, they will just view the article content, rate them (if necessary) and go back.
do i need to call a struts action when any checkbox is checked? how do i do that? or is there any other solution?

I really need some help on this :-(

Thanks in advance
 
jQuery in Action, 2nd edition
 
subject: how to call a struts action when a checkbox is checked ?