I have a web page where a person is registering for a class. In order to register, they need to click a 'checkbox' to indicate they agree with course policies.
I'm using struts and JSTL.
When the person hits submit, I can get other registration data into the Servlet text box.
example: <nested:text property="userName"/>
I can get read the username property in my Servlet.
However, I'm confused about the checkbox. How do I add a checkbox to the web page? and then read the content in the Servlet?
How do I know if the checkbox is clicked or not? Is it a boolean?
Can someone provide a simple example?