aspose file tools*
The moose likes Struts and the fly likes Issue in passing the values to action class, when check box is disabled. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Issue in passing the values to action class, when check box is disabled." Watch "Issue in passing the values to action class, when check box is disabled." New topic
Author

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

Narasimha Rao B.
Ranch Hand

Joined: Aug 26, 2002
Posts: 205
Hi,

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..


Narasimha
Dom Lassy
Ranch Hand

Joined: May 05, 2006
Posts: 181
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.
 
Consider Paul's rocket mass heater.
 
subject: Issue in passing the values to action class, when check box is disabled.