Spring tag tags check box JSP read the manual

Apr 06 2010

Spring JSP for checkbox tag

The need arose at my client recently to add a checkbox to an existing JSP. The checkbox had to be defaulted to checked. Actually I had asked whether the checkbox should be defaulted to checked. This was a proud moment for me. It is not often that I have been presented with such an easy request, with good requirements around it. A checkbox is a single line of HTML code: 

 

<input type="checkbox" name="vehicle" value="Bike" />

 

and to default the box to checked it can look something like this:

 

<input type="checkbox" name="vehicle" value="true" checked="true"/>

 

Read More

 

Disclaimer

The words and opinions expressed here are those of each article's respective author, and do not necessarily represent the views of CapTech Ventures.