Archive for June, 2008

How to work with checkboxes in Spring MVC

Thursday, June 26th, 2008

The usual problem with checkboxes in web environment is that if they were checked when you  are rendering the page and user unchecks them, there is no way by default to know that on back end. This is especially true when you are working with the ‘form’ for Spring wizard, since formBackingObject, where you can reset the checkbox boolean values to false,  is only called once for the first page and not on the subsequent pages. Spring MVC has a better solution to this problem, buy using the following construct:

<spring:bind path="command.myBooleanProperty"> 
        <input type="hidden" name="_<c:out value="${status.expression}"/>">
        <input type="checkbox" name="<c:out value="${status.expression}"/>" value="true"
            <c:if test="${status.value}">checked</c:if>/>

This approach is discussed on and on

How to Host a Web Server at Home With Dynamic DNS

Friday, June 6th, 2008

A good article by  Jeff Black oh how to host a web server at home could be found at In my case, I’ m trying to find a good service that would host my web-apps and would not be too expensive – so I might try his approach.

Finding appropriate colors for your site and for development

Monday, June 2nd, 2008

It is much easier to choose the background or foreground colors for your site with a visual map of colors. One of the maps could be found at: Colors I’ve used for background are light pastel colors #CCFF66, #CCFFFF, #CCFFCC, #FFFF99, #99FFFF, #99FF99, #CCCC99, #CCCCFF, #CCCCCC, #CC99FF, #FF99FF,#66CCFF which work really well with black foreground color. The best way of course is to use CSS to define you background colors. So for example for tables cells I’ve used the following format:
in css file td.bgcolor1 { background-color: #CCFF66 } in jsp file: <td class="bgcolor1">. You can choose a better description for colors or have css refer to functional elements on your site.