Created
October 27, 2011 13:46
-
-
Save theresajayne/1319571 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> | |
<!-- Application Context for Spring --> | |
<context-param> | |
<param-name>contextConfigLocation</param-name> | |
<param-value>/WEB-INF/applicationContext.xml</param-value> | |
</context-param> | |
<context-param> | |
<param-name>tilesDefinitions</param-name> | |
<param-value>/WEB-INF/tiles.xml</param-value> | |
</context-param> | |
<!-- Filter configuration --> | |
<filter> | |
<filter-name>struts2</filter-name> | |
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> | |
<init-param> | |
<param-name>actionPackages</param-name> | |
<param-value>organisation.action</param-value> | |
</init-param> | |
</filter> | |
<filter> | |
<description>Spring Security Filter</description> | |
<filter-name>springSecurityFilterChain</filter-name> | |
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> | |
</filter> | |
<!-- Filter Mappings --> | |
<filter-mapping> | |
<filter-name>struts2</filter-name> | |
<url-pattern>/*</url-pattern> | |
</filter-mapping> | |
<filter-mapping> | |
<filter-name>springSecurityFilterChain</filter-name> | |
<url-pattern>/*</url-pattern> | |
<dispatcher>REQUEST</dispatcher> | |
<dispatcher>INCLUDE</dispatcher> | |
<dispatcher>FORWARD</dispatcher> | |
</filter-mapping> | |
<!-- Listners Configuration --> | |
<listener> | |
<listener-class> | |
org.springframework.security.web.session.HttpSessionEventPublisher | |
</listener-class> | |
</listener> | |
<listener> | |
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | |
</listener> | |
<listener> | |
<listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class> | |
</listener> | |
<!-- Servlet Configurations --> | |
<servlet> | |
<servlet-name>dispatcher</servlet-name> | |
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> | |
<load-on-startup>2</load-on-startup> | |
</servlet> | |
<servlet> | |
<description>InLine Process</description> | |
<servlet-name>InLine</servlet-name> | |
<servlet-class>uk.co.inbrand.inline.InLine</servlet-class> | |
</servlet> | |
<servlet> | |
<servlet-name>AddInlineLicence</servlet-name> | |
<servlet-class>uk.co.inbrand.license.AddInLineLicense</servlet-class> | |
</servlet> | |
<servlet> | |
<description>Process</description> | |
<servlet-name>ImageController</servlet-name> | |
<servlet-class>uk.co.inbrand.objectrepository.ObjectController</servlet-class> | |
</servlet> | |
<servlet> | |
<servlet-name>LibraryController</servlet-name> | |
<servlet-class>uk.co.inbrand.library.LibraryController</servlet-class> | |
</servlet> | |
<servlet> | |
<servlet-name>loginController</servlet-name> | |
<servlet-class>uk.co.inbrand.login.LoginProcessor</servlet-class> | |
</servlet> | |
<servlet> | |
<servlet-name>Organisation</servlet-name> | |
<servlet-class>uk.co.inbrand.core.OrganisationController</servlet-class> | |
</servlet> | |
<servlet> | |
<description>Main Dashboard</description> | |
<servlet-name>dashboard</servlet-name> | |
<jsp-file>/jsp/dashboard.jsp</jsp-file> | |
</servlet> | |
<!-- Servlet Mappings --> | |
<servlet-mapping> | |
<servlet-name>InLine</servlet-name> | |
<url-pattern>/InLine/*</url-pattern> | |
</servlet-mapping> | |
<servlet-mapping> | |
<servlet-name>AddInlineLicence</servlet-name> | |
<url-pattern>/AddInLineLicence/*</url-pattern> | |
</servlet-mapping> | |
<servlet-mapping> | |
<servlet-name>dispatcher</servlet-name> | |
<url-pattern>*.htm</url-pattern> | |
</servlet-mapping> | |
<servlet-mapping> | |
<servlet-name>LibraryController</servlet-name> | |
<url-pattern>/library</url-pattern> | |
</servlet-mapping> | |
<servlet-mapping> | |
<servlet-name>loginController</servlet-name> | |
<url-pattern>/login</url-pattern> | |
</servlet-mapping> | |
<servlet-mapping> | |
<servlet-name>dashboard</servlet-name> | |
<url-pattern>/dashboard</url-pattern> | |
</servlet-mapping> | |
<!-- Misc config --> | |
<session-config> | |
<session-timeout> | |
60 | |
</session-timeout> | |
</session-config> | |
<welcome-file-list> | |
<welcome-file>redirect.jsp</welcome-file> | |
</welcome-file-list> | |
</web-app> | |
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE struts-config PUBLIC | |
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" | |
"http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd"> | |
<struts-config> | |
<form-beans> | |
<form-bean name="organisationform" type="uk.co.inbrand.actions.CreateOrganisation"/> | |
</form-beans> | |
<global-exceptions> | |
</global-exceptions> | |
<global-forwards> | |
<forward name="welcome" path="/Welcome.do"/> | |
</global-forwards> | |
<action-mappings> | |
<action input="/" name="organisation" path="/createOrganisation" scope="session" type="uk.co.inbrand.actions.CreateOrganisation" > | |
<forward name="success" path="/jsp/organisation.jsp"/> | |
</action> | |
<action input="/" name="dashboard" path="/dashboard" scope="session" type="uk.co.inbrand.actions.DashboardAction" > | |
<forward name="success" path="/jsp/dashboard.jsp"/> | |
</action> | |
<action path="/Welcome" forward="/welcomeStruts.jsp"/> | |
</action-mappings> | |
<controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"/> | |
<message-resources parameter="uk/co/inbrand/struts/InbrandResource"/> | |
<!-- ========================= Tiles plugin ===============================--> | |
<!-- | |
This plugin initialize Tiles definition factory. This later can takes some | |
parameters explained here after. The plugin first read parameters from | |
web.xml, thenoverload them with parameters defined here. All parameters | |
are optional. | |
The plugin should be declared in each struts-config file. | |
- definitions-config: (optional) | |
Specify configuration file names. There can be several comma | |
separated file names (default: ?? ) | |
- moduleAware: (optional - struts1.1) | |
Specify if the Tiles definition factory is module aware. If true | |
(default), there will be one factory for each Struts module. | |
If false, there will be one common factory for all module. In this | |
later case, it is still needed to declare one plugin per module. | |
The factory will be initialized with parameters found in the first | |
initialized plugin (generally the one associated with the default | |
module). | |
true : One factory per module. (default) | |
false : one single shared factory for all modules | |
- definitions-parser-validate: (optional) | |
Specify if xml parser should validate the Tiles configuration file. | |
true : validate. DTD should be specified in file header (default) | |
false : no validation | |
Paths found in Tiles definitions are relative to the main context. | |
--> | |
<plug-in className="org.apache.struts.tiles.TilesPlugin" > | |
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" /> | |
<set-property property="moduleAware" value="true" /> | |
</plug-in> | |
<!-- ========================= Validator plugin ================================= --> | |
<plug-in className="org.apache.struts.validator.ValidatorPlugIn"> | |
<set-property | |
property="pathnames" | |
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/> | |
</plug-in> | |
</struts-config> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment