how to disable spring form checkbox?

Viewed 21022

In my jsp, for certain conditions I want the checkbox to be present but do not want to allow the user to check it or uncheck it.

I am not sure how I can achieve this. I tried the following

<form:checkbox path="..." disabled = "disabled"> 
<form:checkbox path="..." disabled = "true"> 
<form:checkbox path="..." readonly = "readonly"> 

Nothing seem to work.

Can someone throw some light on this?

Thanks..

1 Answers
Related