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>