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:
<form:form method="post" commandName="loginCommand">
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.
<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"/>
When (on which stage) is it set into the request?