mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-12-01 21:22:17 -05:00
147 lines
5.3 KiB
XML
147 lines
5.3 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
|
|
version="2.4">
|
|
|
|
<display-name>Beehive Web Application</display-name>
|
|
|
|
<!-- Filter to perform Page Flow operations when JSPs are hit directly. -->
|
|
<filter>
|
|
<filter-name>PageFlowJspFilter</filter-name>
|
|
<filter-class>org.apache.beehive.netui.pageflow.PageFlowJspFilter</filter-class>
|
|
</filter>
|
|
|
|
<!-- Filter to perform Page Flow operations when JavaServer Faces pages are hit directly. -->
|
|
<filter>
|
|
<filter-name>PageFlowFacesFilter</filter-name>
|
|
<filter-class>org.apache.beehive.netui.pageflow.PageFlowFacesFilter</filter-class>
|
|
</filter>
|
|
|
|
<!--
|
|
It is possible - but certainly not required - to keep source files such as page flows and
|
|
JavaServer Faces backing beans mixed in with web content. In this case, and when the web
|
|
content directory itself is being deployed without being copied to some other build
|
|
location, it is important to prevent the source code from being URL-addressable. This
|
|
filter returns a specified error code when source files are requested.
|
|
-->
|
|
<filter>
|
|
<filter-name>PageFlowForbiddenFilter</filter-name>
|
|
<filter-class>org.apache.beehive.netui.pageflow.PageFlowForbiddenFilter</filter-class>
|
|
<init-param>
|
|
<param-name>response-code</param-name>
|
|
<param-value>404</param-value>
|
|
</init-param>
|
|
</filter>
|
|
|
|
<filter-mapping>
|
|
<filter-name>PageFlowJspFilter</filter-name>
|
|
<url-pattern>*.jsp</url-pattern>
|
|
<dispatcher>FORWARD</dispatcher>
|
|
<dispatcher>REQUEST</dispatcher>
|
|
<dispatcher>INCLUDE</dispatcher>
|
|
</filter-mapping>
|
|
|
|
<filter-mapping>
|
|
<filter-name>PageFlowJspFilter</filter-name>
|
|
<url-pattern>*.jspx</url-pattern>
|
|
<dispatcher>FORWARD</dispatcher>
|
|
<dispatcher>REQUEST</dispatcher>
|
|
<dispatcher>INCLUDE</dispatcher>
|
|
</filter-mapping>
|
|
|
|
<filter-mapping>
|
|
<filter-name>PageFlowFacesFilter</filter-name>
|
|
<url-pattern>*.faces</url-pattern>
|
|
<dispatcher>FORWARD</dispatcher>
|
|
<dispatcher>REQUEST</dispatcher>
|
|
<dispatcher>INCLUDE</dispatcher>
|
|
</filter-mapping>
|
|
|
|
<filter-mapping>
|
|
<filter-name>PageFlowFacesFilter</filter-name>
|
|
<url-pattern>*.jsf</url-pattern>
|
|
<dispatcher>FORWARD</dispatcher>
|
|
<dispatcher>REQUEST</dispatcher>
|
|
<dispatcher>INCLUDE</dispatcher>
|
|
</filter-mapping>
|
|
|
|
<!-- Prevent URL access to Java source code. -->
|
|
<filter-mapping>
|
|
<filter-name>PageFlowForbiddenFilter</filter-name>
|
|
<url-pattern>*.java</url-pattern>
|
|
<dispatcher>REQUEST</dispatcher>
|
|
</filter-mapping>
|
|
|
|
<!-- Prevent URL access to JavaServer Faces backing beans. -->
|
|
<filter-mapping>
|
|
<filter-name>PageFlowForbiddenFilter</filter-name>
|
|
<url-pattern>*.jsfb</url-pattern>
|
|
<dispatcher>REQUEST</dispatcher>
|
|
</filter-mapping>
|
|
|
|
<!-- Prevent URL access to shared flow source files. -->
|
|
<filter-mapping>
|
|
<filter-name>PageFlowForbiddenFilter</filter-name>
|
|
<url-pattern>*.jpfs</url-pattern>
|
|
<dispatcher>REQUEST</dispatcher>
|
|
</filter-mapping>
|
|
|
|
<!-- Action Servlet Configuration (with debugging) -->
|
|
<servlet>
|
|
<servlet-name>action</servlet-name>
|
|
<servlet-class>org.apache.beehive.netui.pageflow.PageFlowActionServlet</servlet-class>
|
|
<init-param>
|
|
<param-name>config</param-name>
|
|
<param-value>/_pageflow/struts-config.xml</param-value>
|
|
</init-param>
|
|
<init-param>
|
|
<param-name>debug</param-name>
|
|
<param-value>2</param-value>
|
|
</init-param>
|
|
<init-param>
|
|
<param-name>detail</param-name>
|
|
<param-value>2</param-value>
|
|
</init-param>
|
|
<load-on-startup>2</load-on-startup>
|
|
</servlet>
|
|
|
|
<!-- The XmlHttpRequest handler Servlet -->
|
|
<servlet>
|
|
<servlet-name>XmlHttpRequestServlet</servlet-name>
|
|
<servlet-class>org.apache.beehive.netui.pageflow.xmlhttprequest.XmlHttpRequestServlet</servlet-class>
|
|
</servlet>
|
|
|
|
<!-- Struts Action Servlet Mappings -->
|
|
<!-- Note that because Struts takes the *last* mapping here as the extension to add to
|
|
actions posted from forms, we must have *.do come after *.jpf (etc.). -->
|
|
<servlet-mapping>
|
|
<servlet-name>action</servlet-name>
|
|
<url-pattern>*.jpf</url-pattern>
|
|
</servlet-mapping>
|
|
|
|
<servlet-mapping>
|
|
<servlet-name>action</servlet-name>
|
|
<url-pattern>*.do</url-pattern>
|
|
</servlet-mapping>
|
|
|
|
<!-- XmlHttpRequest Servlet -->
|
|
<servlet-mapping>
|
|
<servlet-name>XmlHttpRequestServlet</servlet-name>
|
|
<url-pattern>*.xhr</url-pattern>
|
|
</servlet-mapping>
|
|
|
|
<welcome-file-list>
|
|
<welcome-file>index.jsp</welcome-file>
|
|
</welcome-file-list>
|
|
|
|
<!--<resource-ref>
|
|
<description>DB Connection</description>
|
|
<res-ref-name>jdbc/JdbcControlSampleDB</res-ref-name>
|
|
<res-type>javax.sql.DataSource</res-type>
|
|
<res-auth>Container</res-auth>
|
|
</resource-ref>-->
|
|
|
|
</web-app>
|