1 | <?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 | |
---|
8 | |
---|
9 | <display-name>NDACC</display-name> |
---|
10 | |
---|
11 | <context-param> |
---|
12 | <param-name>contextConfigLocation</param-name> |
---|
13 | <param-value> |
---|
14 | classpath:dao-context.xml, |
---|
15 | classpath:service-context.xml, |
---|
16 | classpath:hibernate.cfg.xml |
---|
17 | </param-value> |
---|
18 | </context-param> |
---|
19 | |
---|
20 | <listener> |
---|
21 | <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
---|
22 | </listener> |
---|
23 | |
---|
24 | |
---|
25 | <!--SERVLETS --> |
---|
26 | <servlet> |
---|
27 | <servlet-name>instrument</servlet-name> |
---|
28 | <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
---|
29 | <init-param> |
---|
30 | <param-name>contextConfigLocation</param-name> |
---|
31 | <param-value> |
---|
32 | /WEB-INF/servlet-context.xml |
---|
33 | </param-value> |
---|
34 | </init-param> |
---|
35 | </servlet> |
---|
36 | |
---|
37 | |
---|
38 | <servlet-mapping> |
---|
39 | <servlet-name>instrument</servlet-name> |
---|
40 | <url-pattern>/instrument</url-pattern> |
---|
41 | </servlet-mapping> |
---|
42 | |
---|
43 | <servlet> |
---|
44 | <servlet-name>station</servlet-name> |
---|
45 | <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
---|
46 | <init-param> |
---|
47 | <param-name>contextConfigLocation</param-name> |
---|
48 | <param-value> |
---|
49 | /WEB-INF/servlet-context.xml |
---|
50 | </param-value> |
---|
51 | </init-param> |
---|
52 | </servlet> |
---|
53 | |
---|
54 | <servlet-mapping> |
---|
55 | <servlet-name>station</servlet-name> |
---|
56 | <url-pattern>/station</url-pattern> |
---|
57 | </servlet-mapping> |
---|
58 | |
---|
59 | </web-app> |
---|