Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

DWR Servlet

DWR Servlet

The DWR servlet acts as a mini-server for delivering JavaScript to the browser and dynamically generating proxy objects. The following declarations in web.xml add DWR to the web application and do not need to be modified when adding additional DWR-enabled features.

            storefront/ep-storefront-webapp/src/main/webapp/WEB-INF/web.xml
  <!-- DWR - Direct Web Remoting -->
  <servlet>
    <servlet-name>dwr-invoker</servlet-name>
    <display-name>DWR Servlet</display-name>
    <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
    <init-param>
     <param-name>debug</param-name>
     <param-value>false</param-value>
    </init-param>
    <init-param>
     <param-name>config</param-name>
     <param-value>/WEB-INF/dwr.xml</param-value>
    </init-param>
  </servlet>

  <!--servlet mapping -->

  <servlet-mapping>
    <servlet-name>dwr-invoker</servlet-name>
    <url-pattern>/dwr/*</url-pattern>
  </servlet-mapping>