« Return to Thread: DWR + Spring + Redirect Problem

DWR + Spring + Redirect Problem

by rukshan :: Rate this Message:

Reply to Author | View in Thread

Hi

I'm submitting a form trough dwr. The request is handled by a spring controller, once the actions have been taken the result is a redirect to another controller. At this point i get the following warning..

WARN  org.directwebremoting.util.SwallowingHttpServletResponse  - Ignoring call to sendRedirect(index)

My bean configuration is as following

<bean name="addContactController" class="com.edifice.controller.AddContactController">
        <property name="sessionForm" value="false"/>
        <property name="commandName" value="contactCommand"/>
        <property name="commandClass" value="com.edifice.dao.Contact"/>
        <property name="formView" value="contactForm"/>
        <property name="successView" value="redirect:index"/>
        <property name="cancelView" value="redirect:index" />
        <property name="cancelParamKey" value="cancel"/>
        <property name="validator" ref="contactValidator"/>
       
        <property name="salutations" ref="salutations"/>
        <property name="contactDaoImpl" ref="contactDaoImpl"/>
        <property name="clientDaoImpl" ref="clientDaoImpl"/>
    </bean>

when the form inputs are invalid i get the result correctly (form + error messages will be shown) because its not a redirect from the controller.. but if it was a cancel or success the result is been swallowed..

Im using : wctx.forwardToString(url); to submit my form..

What might I be doing wrong here?


Also I would like to know does DWR allows redirects when using forwardToString() method??

Thanks in advance
 

 « Return to Thread: DWR + Spring + Redirect Problem

LightInTheBox - Buy quality products at wholesale price