<<<<<<<<<<< // Line 1: where this method is defined ?
Its a default method for ur controller !!
<<<<<<<< setCommandClass(User.class
user.class is bean class ....
<<<<<<<<<<< setCommandName("user");
User is an customer defined command object.
U can use either command or user object in ur controller and form
U can give any name to command Class
If ur not use setCommandName("user"); then it will take default commandName that is
command object .
<<<<<<< How user object is sent into Object command ?
U have the jsp right that properties value binded and get in the controller purpose we are using command object
(textbox,dropdown etc values ) u can get throw command object
<spring:bind> or <form:input path="">for binding the value in jsp
<<<<<<<<< User user = (User) command;
this is for costing the command object in to ur bean
then all bean value going to set !!
Main Topics
Browse All Topics





by: MRomaniPosted on 2009-11-04 at 05:33:25ID: 25739071
maybe this site can help:
.org/sprin g/docs/3.0 .0.M1/java doc- api/or g/springfr amework/we b/servlet/ mvc/ BaseCo mmandContr oller.html
http://static.springsource
Select allOpen in new window