• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Issue in passing the values to action class, when check box is disabled.

Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Could some one help me on ...
Issues when the checkbox is checked and disabled...
I have a check box that should be checked and disabled based on the particular condition.
i have logic in jsp page, based on the particular condition, i am checking the checkbox and disabling it
but when the values are passed to execute method in action class the value is passed as false instead of true
if i enable the checkbox the values are properly passing to the action class execute method.

Thanks in Advance..
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Disabling a form element prevents the value from being sent to the server. On submittal, you can enable the checkboxes, submit the form, then re-disable the checkboxes. The user won't notice a difference.
Hey, I'm supposed to be the guide! Wait up! No fair! You have the tiny ad!
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic