Rev 2018 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2009 | es | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <web-app version="2.4" |
||
3 | 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 | <listener> |
||
7 | <listener-class>pt.estgp.es.exemplos.hibernate.web.HibernateStarterListener</listener-class> |
||
8 | </listener> |
||
9 | |||
10 | <filter> |
||
11 | <filter-name>teste</filter-name> |
||
12 | <filter-class>pt.estgp.es.exemplos.hibernate.web.UserFilter</filter-class> |
||
13 | </filter> |
||
14 | <filter-mapping> |
||
15 | <filter-name>teste</filter-name> |
||
16 | <url-pattern>/user/*</url-pattern> |
||
17 | </filter-mapping> |
||
18 | <!--<filter-mapping> |
||
19 | <filter-name>teste</filter-name> |
||
20 | <url-pattern>/user/*</url-pattern> |
||
21 | </filter-mapping>--> |
||
22 | |||
23 | <servlet> |
||
24 | <servlet-name>PaginasServlet</servlet-name> |
||
25 | <servlet-class>pt.estgp.es.exemplos.hibernate.web.PaginasServlet</servlet-class> |
||
26 | </servlet> |
||
27 | |||
28 | <servlet> |
||
29 | <servlet-name>PaginasDeleteServlet</servlet-name> |
||
30 | <servlet-class>pt.estgp.es.exemplos.hibernate.web.PaginasDeleteServlet</servlet-class> |
||
31 | </servlet> |
||
32 | |||
33 | <servlet> |
||
34 | <servlet-name>action</servlet-name> |
||
35 | <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> |
||
36 | <init-param> |
||
37 | <param-name>config</param-name> |
||
38 | <param-value> |
||
39 | /conf/web/struts-default.xml |
||
40 | </param-value> |
||
41 | </init-param> |
||
42 | <init-param> |
||
43 | <param-name>debug</param-name> |
||
44 | <param-value>2</param-value> |
||
45 | </init-param> |
||
46 | <init-param> |
||
47 | <param-name>detail</param-name> |
||
48 | <param-value>2</param-value> |
||
49 | </init-param> |
||
50 | <init-param> |
||
51 | <param-name>nocache</param-name> |
||
52 | <param-value>true</param-value> |
||
53 | </init-param> |
||
54 | <load-on-startup>2</load-on-startup> |
||
55 | </servlet> |
||
56 | <servlet> |
||
57 | <servlet-name>action</servlet-name> |
||
58 | <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> |
||
59 | <init-param> |
||
60 | <param-name>config</param-name> |
||
61 | <param-value>/WEB-INF/struts-config.xml</param-value> |
||
62 | </init-param> |
||
63 | <load-on-startup>2</load-on-startup> |
||
64 | </servlet> |
||
65 | <servlet> |
||
66 | <servlet-name>action</servlet-name> |
||
67 | <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> |
||
68 | <init-param> |
||
69 | <param-name>config</param-name> |
||
70 | <param-value>/WEB-INF/struts-config.xml</param-value> |
||
71 | </init-param> |
||
72 | <load-on-startup>2</load-on-startup> |
||
73 | </servlet> |
||
74 | <servlet> |
||
75 | <servlet-name>action</servlet-name> |
||
76 | <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> |
||
77 | <init-param> |
||
78 | <param-name>config</param-name> |
||
79 | <param-value>/WEB-INF/struts-config.xml</param-value> |
||
80 | </init-param> |
||
81 | <load-on-startup>2</load-on-startup> |
||
82 | </servlet> |
||
83 | <servlet> |
||
84 | <servlet-name>action</servlet-name> |
||
85 | <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> |
||
86 | <init-param> |
||
87 | <param-name>config</param-name> |
||
88 | <param-value>/WEB-INF/struts-config.xml</param-value> |
||
89 | </init-param> |
||
90 | <load-on-startup>2</load-on-startup> |
||
91 | </servlet> |
||
92 | |||
93 | |||
94 | <servlet-mapping> |
||
95 | <servlet-name>PaginasServlet</servlet-name> |
||
96 | <url-pattern>/paginas</url-pattern> |
||
97 | </servlet-mapping> |
||
98 | <servlet-mapping> |
||
99 | <servlet-name>PaginasDeleteServlet</servlet-name> |
||
100 | <url-pattern>/paginasDelete</url-pattern> |
||
101 | </servlet-mapping> |
||
102 | <servlet-mapping> |
||
103 | <servlet-name>PaginasServlet</servlet-name> |
||
104 | <url-pattern>/testep</url-pattern> |
||
105 | </servlet-mapping> |
||
106 | <servlet-mapping> |
||
107 | <servlet-name>action</servlet-name> |
||
108 | <url-pattern>*.do</url-pattern> |
||
109 | </servlet-mapping> |
||
110 | <servlet-mapping> |
||
111 | <servlet-name>action</servlet-name> |
||
112 | <url-pattern>*.do</url-pattern> |
||
113 | </servlet-mapping> |
||
114 | <servlet-mapping> |
||
115 | <servlet-name>action</servlet-name> |
||
116 | <url-pattern>*.do</url-pattern> |
||
117 | </servlet-mapping> |
||
118 | <servlet-mapping> |
||
119 | <servlet-name>action</servlet-name> |
||
120 | <url-pattern>*.do</url-pattern> |
||
121 | </servlet-mapping> |
||
122 | <servlet-mapping> |
||
123 | <servlet-name>action</servlet-name> |
||
124 | <url-pattern>*.do</url-pattern> |
||
125 | </servlet-mapping> |
||
126 | |||
127 | <error-page> |
||
128 | <error-code>404</error-code> |
||
129 | <location>/src/web/errors/404.jsp</location> |
||
130 | </error-page> |
||
131 | |||
132 | <!--START FILES--> |
||
133 | <welcome-file-list> |
||
134 | <welcome-file>listaPaginas.jsp</welcome-file> |
||
135 | </welcome-file-list> |
||
136 | |||
137 | |||
138 | </web-app> |