Then I'm not sure where you are having an issue. The state of the checkbox will be submitted back to the server, the server can persists it however it likes. When the page is requested the page controller for the JSP fetches the state and sends it to the page where the checkbox markup can be accordingly contstructed.
Where's the problem? Is it in constructing the HTML? Storing the state on the server? Fetching the state?