Results 1 to 1 of 1

Thread: Spring & DWR. General questions

  1. #1
    Join Date
    May 2009
    Location
    Rus
    Posts
    87

    Default Spring & DWR. General questions

    I had SpringMVC application. And now I want to add AJAX-functionality. As far as I know, DWR - is one of the best ways to do this.
    I added this into web.xml:
    Code:
        <servlet>
            <servlet-name>dwr</servlet-name>
            <servlet-class>org.directwebremoting.spring.DwrSpringServlet</servlet-class>
            <init-param>
                <param-name>debug</param-name>
                <param-value>true</param-value>
            </init-param>
        </servlet>
    <servlet-mapping>
            <servlet-name>dwr</servlet-name>
            <url-pattern>*.dwr</url-pattern>
        </servlet-mapping>
    Then I created a new applicationContext-dwr.xml and put it into contextConfigLocation in web.xml.
    Is it right what I am doing? Will ServletDispetcher and dwr-configuration(actually it's a dispetcher too) work simultaneously without making any demage to each other?
    Last edited by ctapobep; Jun 13th, 2009 at 10:19 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •