• 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

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

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
A timing clock, fuse wire, high explosives and a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic