1 | <?com.medias.xml version="1.0" encoding="UTF-8"?> |
---|
2 | <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> |
---|
3 | <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" |
---|
4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
5 | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> |
---|
6 | |
---|
7 | <display-name>Megapoli</display-name> |
---|
8 | |
---|
9 | <welcome-file-list> |
---|
10 | <welcome-file>/init.jsp</welcome-file> |
---|
11 | </welcome-file-list> |
---|
12 | |
---|
13 | <context-param> |
---|
14 | <param-name>contextConfigLocation</param-name> |
---|
15 | <param-value> |
---|
16 | classpath:dao-context.xml, |
---|
17 | classpath:service-context.xml, |
---|
18 | classpath:hibernate.cfg.xml, |
---|
19 | |
---|
20 | classpath:json/json-context.xml |
---|
21 | </param-value> |
---|
22 | </context-param> |
---|
23 | |
---|
24 | <listener> |
---|
25 | <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
---|
26 | </listener> |
---|
27 | |
---|
28 | <!-- TAGLIBS --> |
---|
29 | <!--<taglib>--> |
---|
30 | <!--<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>--> |
---|
31 | <!--<taglib-location>/WEB-INF/tags/htmlJsp.tag</taglib-location>--> |
---|
32 | <!--</taglib>--> |
---|
33 | |
---|
34 | <!--<taglib>--> |
---|
35 | <!--<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>--> |
---|
36 | <!--<taglib-location>/WEB-INF/tags/htmlResourceJsp.tag</taglib-location>--> |
---|
37 | <!--</taglib>--> |
---|
38 | |
---|
39 | <!--<taglib>--> |
---|
40 | <!--<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>--> |
---|
41 | <!--<taglib-location>/WEB-INF/tags/htmlCss.tag</taglib-location>--> |
---|
42 | <!--</taglib>--> |
---|
43 | |
---|
44 | <!--<taglib>--> |
---|
45 | <!--<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>--> |
---|
46 | <!--<taglib-location>/WEB-INF/tags/htmlJs.tag</taglib-location>--> |
---|
47 | <!--</taglib>--> |
---|
48 | |
---|
49 | <!--SERVLETS --> |
---|
50 | <servlet> |
---|
51 | <servlet-name>visualization</servlet-name> |
---|
52 | <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
---|
53 | <init-param> |
---|
54 | <param-name>contextConfigLocation</param-name> |
---|
55 | <param-value> |
---|
56 | /WEB-INF/servlet-context.xml |
---|
57 | </param-value> |
---|
58 | </init-param> |
---|
59 | </servlet> |
---|
60 | |
---|
61 | <servlet-mapping> |
---|
62 | <servlet-name>visualization</servlet-name> |
---|
63 | <url-pattern>/visualization</url-pattern> |
---|
64 | </servlet-mapping> |
---|
65 | |
---|
66 | <servlet> |
---|
67 | <servlet-name>action</servlet-name> |
---|
68 | <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> |
---|
69 | <init-param> |
---|
70 | <param-name>debug</param-name> |
---|
71 | <param-value>3</param-value> |
---|
72 | </init-param> |
---|
73 | <init-param> |
---|
74 | <param-name>config</param-name> |
---|
75 | <param-value>/WEB-INF/struts-config.xml</param-value> |
---|
76 | </init-param> |
---|
77 | <load-on-startup>0</load-on-startup> |
---|
78 | </servlet> |
---|
79 | |
---|
80 | <servlet-mapping> |
---|
81 | <servlet-name>action</servlet-name> |
---|
82 | <url-pattern>*.do</url-pattern> |
---|
83 | </servlet-mapping> |
---|
84 | |
---|
85 | |
---|
86 | <servlet> |
---|
87 | <servlet-name>MegapoliInitialisation</servlet-name> |
---|
88 | <servlet-class>org.medias.megapoli.utils.MegapoliInitialisation</servlet-class> |
---|
89 | <load-on-startup>0</load-on-startup> |
---|
90 | </servlet> |
---|
91 | |
---|
92 | |
---|
93 | <!-- taglib> <taglib-uri>/tlds/struts-logic.tld</taglib-uri> <taglib-location>/tlds/struts-logic.tld</taglib-location> |
---|
94 | </taglib> <taglib> <taglib-uri>/tlds/struts-html.tld</taglib-uri> <taglib-location>/tlds/struts-html.tld</taglib-location> |
---|
95 | </taglib> <taglib> <taglib-uri>/tlds/struts-bean.tld</taglib-uri> <taglib-location>/tlds/struts-bean.tld</taglib-location> |
---|
96 | </taglib> <taglib> <taglib-uri>/tlds/struts-nested.tld</taglib-uri> <taglib-location>/tlds/struts-nested.tld</taglib-location> |
---|
97 | </taglib --> |
---|
98 | |
---|
99 | <resource-ref> |
---|
100 | <description>postgreSQL Datasource</description> |
---|
101 | <res-ref-name>megapoli/jdbc</res-ref-name> |
---|
102 | <res-type>javax.sql.DataSource</res-type> |
---|
103 | <res-auth>Container</res-auth> |
---|
104 | </resource-ref> |
---|
105 | |
---|
106 | <session-config> |
---|
107 | <session-timeout>60</session-timeout> <!-- minute --> |
---|
108 | </session-config> |
---|
109 | |
---|
110 | </web-app> |
---|