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