• 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

check boxes and servlets

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I need to tell a javabean (NOT AN EJB) that a true/false value has changed. I have a servlet/bean/jsp combo that populates an html form. The form has a set of checkboxes that are defalultly checked/unchecked based on a boolean flag located in a database. I need to be able to tell the database when those boolean values have changed(have been checked or unchecked). Now seeing the checked values is easy with submitting the form... But the unselected values are causing me some confusion. I know a way to pass the unchecked values using javaScript ... However i HATE javascript. Is there a way to change the boolean values in my bean that populates the form. The bean is stored in the session when it is passed to the form so it is in the Page's session.
Thanks and sorry for the large message.
 
Heath Lilley
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Never mind. Just figured it out.
I will populate a new bean with the submit data and compare it to the original "populateing" bean. I will leave this up so someone else might also benifit. Sorry if i waisted your time but i was paniced.
reply
    Bookmark Topic Watch Topic
  • New Topic