Itegrating DWR (Direct Web Remoting) with Spring

Hi Springers, I have used DWR (Direct Web Remoting) in my last project which was pretty interesting and I want to share the simplest way of using DWR with spring application. Download the latest version of dwr.jar from here. And put it in the /WEB-INF/lib folder. I have used DWR 2.0.5.

Add the following lines in your web.xml

  <display-name>DWR Servlet</display-name>


Now create a dwr.xml in the WEB-INF folder alongside web.xml and add the following line in that file.

    "-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN"
    "<a href=""></a>">

    <create creator="new" javascript="JDate">
      <param name="class" value="java.util.Date"/>
    <create creator="new" javascript="Demo">
      <param name="class" value=""/>

To check go to the following URL.


You should see a page showing you the classes that you’ve selected.

To learn detail about DWR please visit the documentation site of DWR.

Read More