Announcement Announcement Module
No announcement yet.
how to forward to a MultiActionController method from inside a SimpleFormController Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to forward to a MultiActionController method from inside a SimpleFormController

    Hello all you Spring gurus,
    I am trying to invoke the method of a MultiActionController method upon returning from an onSubmit() method with this code:

    viewId = "forward:/MsrSpendingDetail";
    HashMap<String, String> model = new HashMap<String, String>();
    model.put("controllerMethod", "getTransactions");

    return new ModelAndView(viewId, model);

    The invoked MultiActionController is defined in my spring-action-servlet as

    <bean id="paramMethodNameMSRResolver" class="org.springframework.web.servlet.mvc.multiac tion.ParameterMethodNameResolver">
    <property name="paramName" value="controllerMethod"/>

    <bean id="viewSpendingDetailsController"
    class="com.action.ViewSpendingDetailMController" >
    <property name="methodNameResolver" ref="paramMethodNameMSRResolver"/>

    The mapping is defined inside a SimpleUrlHandlerMapping definition tag with

    <prop key="/MsrSpendingDetail">viewSpendingDetailsController</prop>

    The problem is that I am NEITHER getting an exception message in the log NOR is the getTransactions() method being called. This method has already been properly called and tested from a jsp.

    What is the proper technique to be able to call a MultiActionController method from another controller with the ModelAndView object?

    How can I TRACE the processing of this ModelAndView object inside the Spring framework classes?

    Thanks a lot
    Last edited by EduardoTorres; May 8th, 2008, 06:49 PM. Reason: delicate employer's information