« Return to Thread: DWR 2 and Spring 2

Re: DWR 2 and Spring 2

by Lexius :: Rate this Message:

Reply to Author | View in Thread


Brendan Grainger-2 wrote:
Sure, I'm assuming you have spring MVC working.

I have this in my springDispatcher-servlet.xml (or something similar).
...
Thanks.
Now it work for me. The problem was in url mapping:

<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        ...
        <property name="mappings">
            <props>
                <prop key="/test.html">testController</prop>
                <prop key="/flowController.html">flowController</prop>
                <prop key="/*">dwrController</prop>
            </props>
        </property>

    </bean>

But I don't know how to map dwrController to one url. I get it working only for /* mapping.
Can you help me?

(Sorry for my English, I am from Ukraine)

 « Return to Thread: DWR 2 and Spring 2