Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2007 | 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 | |||
7 | <listener> |
||
8 | <listener-class>pt.estgp.es.exemplos.hibernate.web.HibernateStarterListener</listener-class> |
||
9 | </listener> |
||
10 | |||
11 | <filter> |
||
12 | <filter-name>UserFilter</filter-name> |
||
13 | <filter-class>pt.estgp.es.exemplos.hibernate.web.UserFilter</filter-class> |
||
14 | </filter> |
||
15 | |||
16 | <filter-mapping> |
||
17 | <filter-name>UserFilter</filter-name> |
||
18 | <url-pattern>/user/*</url-pattern> |
||
19 | </filter-mapping> |
||
20 | |||
21 | <servlet> |
||
22 | <servlet-name>PaginasServlet</servlet-name> |
||
23 | <servlet-class>pt.estgp.es.exemplos.hibernate.web.PaginasServlet</servlet-class> |
||
24 | </servlet> |
||
25 | |||
26 | |||
27 | <servlet> |
||
28 | <servlet-name>PaginasDeleteServlet</servlet-name> |
||
29 | <servlet-class>pt.estgp.es.exemplos.hibernate.web.PaginasDeleteServlet</servlet-class> |
||
30 | </servlet> |
||
31 | <servlet> |
||
32 | <servlet-name>action</servlet-name> |
||
33 | <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> |
||
34 | <init-param> |
||
35 | <param-name>config</param-name> |
||
36 | <param-value> |
||
37 | /WEB-INF/struts-default.xml |
||
38 | </param-value> |
||
39 | </init-param> |
||
40 | <init-param> |
||
41 | <param-name>debug</param-name> |
||
42 | <param-value>2</param-value> |
||
43 | </init-param> |
||
44 | <init-param> |
||
45 | <param-name>detail</param-name> |
||
46 | <param-value>2</param-value> |
||
47 | </init-param> |
||
48 | <init-param> |
||
49 | <param-name>nocache</param-name> |
||
50 | <param-value>true</param-value> |
||
51 | </init-param> |
||
52 | <load-on-startup>2</load-on-startup> |
||
53 | </servlet> |
||
54 | |||
55 | <servlet-mapping> |
||
56 | <servlet-name>action</servlet-name> |
||
57 | <url-pattern>*.do</url-pattern> |
||
58 | </servlet-mapping> |
||
59 | |||
60 | |||
61 | |||
62 | <servlet-mapping> |
||
63 | <servlet-name>PaginasServlet</servlet-name> |
||
64 | <url-pattern>/paginas</url-pattern> |
||
65 | </servlet-mapping> |
||
66 | <servlet-mapping> |
||
67 | <servlet-name>PaginasDeleteServlet</servlet-name> |
||
68 | <url-pattern>/paginasDelete</url-pattern> |
||
69 | </servlet-mapping> |
||
70 | <servlet-mapping> |
||
71 | <servlet-name>PaginasServlet</servlet-name> |
||
72 | <url-pattern>/testep</url-pattern> |
||
73 | </servlet-mapping> |
||
74 | |||
75 | |||
76 | <error-page> |
||
77 | <error-code>403</error-code> |
||
78 | <location>/errors/403.jsp</location> |
||
79 | </error-page> |
||
80 | |||
81 | <error-page> |
||
82 | <error-code>404</error-code> |
||
83 | <location>/errors/404.jsp</location> |
||
84 | </error-page> |
||
85 | |||
86 | |||
87 | <jsp-config> |
||
88 | <taglib> |
||
89 | <taglib-uri>/WEB-INF/tlds/struts-bean.tld</taglib-uri> |
||
90 | <taglib-location>/WEB-INF/tlds/struts-bean.tld</taglib-location> |
||
91 | </taglib> |
||
92 | <taglib> |
||
93 | <taglib-uri>/WEB-INF/tlds/struts-html.tld</taglib-uri> |
||
94 | <taglib-location>/WEB-INF/tlds/struts-html.tld</taglib-location> |
||
95 | </taglib> |
||
96 | <taglib> |
||
97 | <taglib-uri>/WEB-INF/tlds/struts-logic.tld</taglib-uri> |
||
98 | <taglib-location>/WEB-INF/tlds/struts-logic.tld</taglib-location> |
||
99 | </taglib> |
||
100 | <taglib> |
||
101 | <taglib-uri>/WEB-INF/tlds/struts-nested.tld</taglib-uri> |
||
102 | <taglib-location>/WEB-INF/tlds/struts-nested.tld</taglib-location> |
||
103 | </taglib> |
||
104 | <taglib> |
||
105 | <taglib-uri>/WEB-INF/tlds/struts-tiles.tld</taglib-uri> |
||
106 | <taglib-location>/WEB-INF/tlds/struts-tiles.tld</taglib-location> |
||
107 | </taglib> |
||
108 | </jsp-config> |
||
109 | |||
110 | |||
111 | <!--START FILES--> |
||
112 | <welcome-file-list> |
||
113 | <welcome-file>home.do</welcome-file> |
||
114 | </welcome-file-list> |
||
115 | |||
116 | |||
117 | </web-app> |