Announcement Announcement Module

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions ( project, this forum has been decommissioned in favour of Spring Extensions one at:

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.

Costin Leau
SpringSource - Spring Training, Consulting, and Support - "From the Source"
See more
See less
Using ParameterHandlerMapping but Spring using command object from previous request Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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
    <bean id="parameterHandlerMapping"
    		<property name="defaultHandler" value="addSurveyFormController"/>
    		<property name="parameterName" value="action"/>
    		<property name="parameterMap">
    				<entry key="newQuestion"
    					value-ref="addQuestionFormController" />
    				<entry key="assocSurveyQuestion"
    					value-ref="assocSurveyQuestionController" />				
    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!!