Monthly Archives: June 2008

Validation with Spring MVC SimpleFormController (1)

Validation with Spring MVC SimpleFormController   Spring MVC provides few options of the controller that you could apply to your application. The choice should be specified by your application requirement and that is the reason I pick up SimpleFormController for … Continue reading

Posted in Spring | 1 Comment

Validation with Spring MVC SimpleFormController (2)

FormView (email_basket.jsp)   <form id="emailForm" action="/send_email.html" method="post"> <table>                 <tr>                     <td class="formelement">                         <spring:bind path="emailCommandName.recipientEmail">                           <spring:message code="${email_validation}" text=""/>                             <input id="recipientEmail" name="recipientEmail" value="${status.value}" type="text">                             <c:if test="${status.error}">                                 <font color="red">${status.errorMessage}</font>                             </c:if>                         </spring:bind>                     </td>                 … Continue reading

Posted in Spring | Leave a comment