Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
Using ParameterHandlerMapping but Spring using command object from previous request Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using ParameterHandlerMapping but Spring using command object from previous request

    I am using Spring Portlet MVC. I have
    Code:
    <bean id="parameterHandlerMapping"
    		class="org.springframework.web.portlet.handler.ParameterHandlerMapping">
    		<property name="defaultHandler" value="addSurveyFormController"/>
    		<property name="parameterName" value="action"/>
    		<property name="parameterMap">
    			<map>
    				<entry key="newQuestion"
    					value-ref="addQuestionFormController" />
    				<entry key="assocSurveyQuestion"
    					value-ref="assocSurveyQuestionController" />				
    			</map>
    		</property>
    	</bean>
    Initial and very first addSurveyFormController is diplays jsp using formView. Then after submit successView shows another JSP form. In that form I set action parameter in URL and Submit it. This results in doSubmitAction of AddQuestionFormController. But I have <spring:bind> in JSP and Spring tries to use survey command which infact was command for addSurveyFormController. in AddQuestionFormController i have question command object set using property commandClass, why is it not used even when AddQuestionFormController is used. Also after completing doSubmitAction of AddQuestionFormController control again goes to onSubmitRender of AddSurveyFormController!!
Working...
X