Hi all.
I have the question about how the form:form tag works.
In my login.jsp I have the following form:
here is my controller declaration into the context xml:Code:<form:form method="post" commandName="loginCommand"> ... </form:form>
So when I first time open the login.jsp (just type the address in the browser's address bar, that means GET method), the controller is not triggered, but the attribute with the name "loginCommand" has already presented into request object.Code:<bean id="loginController" class="com.smvc.controller.LoginController"> <property name="formView" value="login"/> <property name="successView" value="forward:/greeting.htm"/> <property name="commandClass" value="com.smvc.command.LoginCommand"/> <property name="commandName" value="loginCommand"/> <property name="validator"> <bean class="com.smvc.validator.LoginValidator"/> </property> </bean>
When (on which stage) is it set into the request?
Thanks.


Reply With Quote