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