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