DWR (Direct Web Remoting) 2 and Struts 2 Integration.
As mentioned in my post about Java Persistence API you can refer to the database integration part.
Web.xml
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<display-name>Struts2DWRIntegration</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<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>true</param-value>
</init-param>
<init-param>
<param-name>crossDomainSessionSecurity</param-name>
<param-value>false</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>dwr-invoker</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>
</
web-app>
My other posts :
Flying Saucer API
As mentioned in my post about Java Persistence API you can refer to the database integration part.
Web.xml
<?
xml version="1.0" encoding="UTF-8"?>
<!
DOCTYPE web-app PUBLIC
<
web-app>web-app>
My other posts :
Flying Saucer API