I need to show a checkbox or radio button checked or unchecked based on a boolean value.
Is there a way to do that on jsp pages?
I am using spring mvc 3.
Its like checked/unchecked options in an objective questions. If an option is true it should show a checkbox or radio button checked against it.
EDIT: The boolean value doesn’t have anything to do with a form, its just a boolean value.
Thanks.
try this
Above I’ve shown it for request parameter chk, you can use it against any attribute in any scope.