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:
Then I created a new applicationContext-dwr.xml and put it into contextConfigLocation in 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>
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?


Reply With Quote