Hi all,
What is the difference between :
andCode:<spring:bind path="customer.country"> <td><input type="text" name="country" value="<c:out value="${status.value}" />" /></td> </spring:bind>
while in my Controller (extends SimpleFormController) code is :Code:<spring:bind path="customer.country"> <td><input type="text" name="country" value="<c:out value="${customer.country}" />" /></td> </spring:bind>
The both <spring:bind> write the same output, that is "joe". I'd like to know what is the difference between two <spring:bind> code above. I'm afraid there will be a problem on my next learning of Spring Framework. I'm a newb here, and I really appreciate the repliesCode:protected Object formBackingObject(HttpServletRequest request) throws ServletException{ Customer customer = new Customer(); return customer; } protected Map referenceData(HttpServletRequest request, Object command, Errors errors) { Map myModel = new HashMap(); Customer cust = new Customer(); cust.setAUsername("joe"); myModel.put("customer", cust); return myModel; }
Thanks.



Reply With Quote