Rev 2009 | Rev 2049 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2009 | Rev 2018 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" > |
5 | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" > |
6 | <listener> |
6 | <listener> |
7 | <listener-class>pt.estgp.es.exemplos.hibernate.web.HibernateStarterListener</listener-class> |
7 | <listener-class>pt.estgp.es.exemplos.hibernate.web.HibernateStarterListener</listener-class> |
8 | </listener> |
8 | </listener> |
9 | 9 | ||
- | 10 | ||
10 | <filter> |
11 | <filter> |
11 | <filter-name>teste</filter-name> |
12 | <filter-name>UserFilter</filter-name> |
12 | <filter-class>pt.estgp.es.exemplos.hibernate.web.UserFilter</filter-class> |
13 | <filter-class>pt.estgp.es.exemplos.hibernate.web.UserFilter</filter-class> |
13 | </filter> |
14 | </filter> |
- | 15 | <filter> |
|
- | 16 | <filter-name>SecurityFilter</filter-name> |
|
- | 17 | <filter-class>pt.estgp.es.exemplos.hibernate.web.SecurityFilter</filter-class> |
|
- | 18 | </filter> |
|
- | 19 | ||
14 | <filter-mapping> |
20 | <filter-mapping> |
15 | <filter-name>teste</filter-name> |
21 | <filter-name>SecurityFilter</filter-name> |
16 | <url-pattern>/user/*</url-pattern> |
22 | <url-pattern>/*</url-pattern> |
17 | </filter-mapping> |
23 | </filter-mapping> |
18 | <!--<filter-mapping> |
- | |
19 | <filter-name>teste</filter-name> |
- | |
20 | <url-pattern>/user/*</url-pattern> |
- | |
21 | </filter-mapping>--> |
- | |
- | 24 | ||
22 | 25 | ||
23 | <servlet> |
26 | <servlet> |
24 | <servlet-name>PaginasServlet</servlet-name> |
27 | <servlet-name>PaginasServlet</servlet-name> |
25 | <servlet-class>pt.estgp.es.exemplos.hibernate.web.PaginasServlet</servlet-class> |
28 | <servlet-class>pt.estgp.es.exemplos.hibernate.web.PaginasServlet</servlet-class> |
26 | </servlet> |
29 | </servlet> |
Line 34... | Line 37... | ||
34 | <servlet-name>action</servlet-name> |
37 | <servlet-name>action</servlet-name> |
35 | <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> |
38 | <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> |
36 | <init-param> |
39 | <init-param> |
37 | <param-name>config</param-name> |
40 | <param-name>config</param-name> |
38 | <param-value> |
41 | <param-value> |
39 | /conf/web/struts-default.xml |
42 | /WEB-INF/struts-default.xml |
40 | </param-value> |
43 | </param-value> |
41 | </init-param> |
44 | </init-param> |
42 | <init-param> |
45 | <init-param> |
43 | <param-name>debug</param-name> |
46 | <param-name>debug</param-name> |
44 | <param-value>2</param-value> |
47 | <param-value>2</param-value> |
Line 51... | Line 54... | ||
51 | <param-name>nocache</param-name> |
54 | <param-name>nocache</param-name> |
52 | <param-value>true</param-value> |
55 | <param-value>true</param-value> |
53 | </init-param> |
56 | </init-param> |
54 | <load-on-startup>2</load-on-startup> |
57 | <load-on-startup>2</load-on-startup> |
55 | </servlet> |
58 | </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> |
59 | |
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> |
60 | <servlet-mapping> |
84 | <servlet-name>action</servlet-name> |
61 | <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> |
62 | <url-pattern>*.do</url-pattern> |
91 | </servlet> |
63 | </servlet-mapping> |
- | 64 | ||
- | 65 | ||
92 | 66 | ||
93 | 67 | ||
94 | <servlet-mapping> |
68 | <servlet-mapping> |
95 | <servlet-name>PaginasServlet</servlet-name> |
69 | <servlet-name>PaginasServlet</servlet-name> |
96 | <url-pattern>/paginas</url-pattern> |
70 | <url-pattern>/paginas</url-pattern> |
Line 101... | Line 75... | ||
101 | </servlet-mapping> |
75 | </servlet-mapping> |
102 | <servlet-mapping> |
76 | <servlet-mapping> |
103 | <servlet-name>PaginasServlet</servlet-name> |
77 | <servlet-name>PaginasServlet</servlet-name> |
104 | <url-pattern>/testep</url-pattern> |
78 | <url-pattern>/testep</url-pattern> |
105 | </servlet-mapping> |
79 | </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 | 80 | ||
127 | <error-page> |
81 | <error-page> |
128 | <error-code>404</error-code> |
82 | <error-code>404</error-code> |
129 | <location>/src/web/errors/404.jsp</location> |
83 | <location>/errors/404.jsp</location> |
- | 84 | </error-page> |
|
- | 85 | ||
- | 86 | <error-page> |
|
- | 87 | <error-code>403</error-code> |
|
- | 88 | <location>/errors/403.jsp</location> |
|
130 | </error-page> |
89 | </error-page> |
131 | 90 | ||
- | 91 | <error-page> |
|
- | 92 | <error-code>500</error-code> |
|
- | 93 | <location>/errors/500.jsp</location> |
|
- | 94 | </error-page> |
|
- | 95 | ||
- | 96 | <jsp-config> |
|
- | 97 | ||
- | 98 | <taglib> |
|
- | 99 | <taglib-uri>/WEB-INF/tlds/struts-bean.tld</taglib-uri> |
|
- | 100 | <taglib-location>/WEB-INF/tlds/struts-bean.tld</taglib-location> |
|
- | 101 | </taglib> |
|
- | 102 | <taglib> |
|
- | 103 | <taglib-uri>/WEB-INF/tlds/struts-html.tld</taglib-uri> |
|
- | 104 | <taglib-location>/WEB-INF/tlds/struts-html.tld</taglib-location> |
|
- | 105 | </taglib> |
|
- | 106 | <taglib> |
|
- | 107 | <taglib-uri>/WEB-INF/tlds/struts-logic.tld</taglib-uri> |
|
- | 108 | <taglib-location>/WEB-INF/tlds/struts-logic.tld</taglib-location> |
|
- | 109 | </taglib> |
|
- | 110 | <taglib> |
|
- | 111 | <taglib-uri>/WEB-INF/tlds/struts-nested.tld</taglib-uri> |
|
- | 112 | <taglib-location>/WEB-INF/tlds/struts-nested.tld</taglib-location> |
|
- | 113 | </taglib> |
|
- | 114 | <taglib> |
|
- | 115 | <taglib-uri>/WEB-INF/tlds/struts-tiles.tld</taglib-uri> |
|
- | 116 | <taglib-location>/WEB-INF/tlds/struts-tiles.tld</taglib-location> |
|
- | 117 | </taglib> |
|
- | 118 | </jsp-config> |
|
- | 119 | ||
- | 120 | ||
- | 121 | ||
132 | <!--START FILES--> |
122 | <!--START FILES--> |
133 | <welcome-file-list> |
123 | <welcome-file-list> |
134 | <welcome-file>listaPaginas.jsp</welcome-file> |
124 | <welcome-file>home.do</welcome-file> |
135 | </welcome-file-list> |
125 | </welcome-file-list> |
136 | 126 | ||
- | 127 | ||
137 | 128 | ||
138 | </web-app> |
129 | </web-app> |
139 | 130 |