Rev 2009 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2009 | Rev 2018 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <?xml version="1.0" encoding="UTF-8"?> |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | - | ||
3 | <!DOCTYPE struts-config PUBLIC |
2 | <!DOCTYPE struts-config PUBLIC |
4 | "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" |
3 | "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" |
5 | "http://struts.apache.org/dtds/struts-config_1_3.dtd"> |
4 | "http://struts.apache.org/dtds/struts-config_1_3.dtd"> |
6 | 5 | ||
7 | <struts-config> |
6 | <struts-config> |
8 | 7 | ||
9 | 8 | ||
10 | <form-beans> |
9 | <form-beans> |
11 | <!-- Import --> |
10 | <!-- Import --> |
12 | <!--<form-bean type="pt.estgp.estgweb.web.form.announcements.AnnouncementsForm" name="AnnouncementsForm"/>--> |
11 | <form-bean type="pt.estgp.es.exemplos.hibernate.web.login.LoginForm" name="LoginForm"/> |
13 | <!--<form-bean type="com.innovkey.opt.imports.web.ImportForm" name="ImportForm"/>--> |
12 | <!--<form-bean type="com.innovkey.opt.imports.web.ImportForm" name="ImportForm"/>--> |
14 | </form-beans> |
13 | </form-beans> |
- | 14 | ||
- | 15 | <global-exceptions> |
|
- | 16 | ||
- | 17 | </global-exceptions> |
|
- | 18 | ||
- | 19 | <global-forwards> |
|
- | 20 | ||
- | 21 | </global-forwards> |
|
15 | 22 | ||
16 | <global-exceptions> |
- | |
17 | 23 | ||
18 | </global-exceptions> |
- | |
19 | 24 | ||
20 | <global-forwards> |
25 | <action-mappings> |
21 | 26 | ||
22 | </global-forwards> |
- | |
23 | 27 | ||
- | 28 | <!--Portal Forward--> |
|
- | 29 | <action path="/home" forward="page.home"/> |
|
24 | 30 | ||
- | 31 | <action path="/apresentaPagina" forward="page.pagina"/> |
|
25 | 32 | ||
26 | <action-mappings> |
- | |
27 | 33 | ||
- | 34 | <!--Authentication--> |
|
- | 35 | <!-- <action path="/authenticate" |
|
- | 36 | type="pt.estgp.estgweb.web.controllers.authenticate.AuthenticateController" |
|
- | 37 | name="EmptyForm" |
|
- | 38 | scope="request" |
|
- | 39 | parameter="dispatch" |
|
- | 40 | validate="false" |
|
- | 41 | input="page.authentication"> |
|
- | 42 | <forward name="success" path="page.separators.home"/> |
|
- | 43 | <forward name="logout" path="page.authentication"/> |
|
- | 44 | <forward name="firstTimeAuthenticate" path="page.first.time.authenticate"/> |
|
- | 45 | </action>--> |
|
28 | 46 | ||
29 | <!--Portal Forward--> |
- | |
30 | <action path="/home" forward="page.home"/> |
- | |
31 | <action path="/login" forward="page.login"/> |
- | |
32 | 47 | ||
33 | <!--Authentication--> |
- | |
34 | <!-- <action path="/authenticate" |
48 | <action path="/login" |
35 | type="pt.estgp.estgweb.web.controllers.authenticate.AuthenticateController" |
49 | type="pt.estgp.es.exemplos.hibernate.web.login.LoginAction" |
36 | name="EmptyForm" |
50 | name="LoginForm" |
37 | scope="request" |
51 | scope="request" |
38 | parameter="dispatch" |
52 | parameter="dispatch" |
39 | validate="false" |
53 | validate="false" |
40 | input="page.authentication"> |
54 | input="page.home"> |
41 | <forward name="success" path="page.separators.home"/> |
55 | <forward name="ok" path="page.home"/> |
42 | <forward name="logout" path="page.authentication"/> |
56 | <forward name="fail" path="page.home"/> |
43 | <forward name="firstTimeAuthenticate" path="page.first.time.authenticate"/> |
- | |
44 | </action>--> |
57 | </action> |
45 | 58 | ||
46 | 59 | ||
47 | 60 | ||
48 | 61 | ||
49 | 62 | ||
50 | </action-mappings> |
63 | </action-mappings> |
51 | <!--20 Megabytes upload max size can go until 700 MB nao se sabe porque |
64 | <!--20 Megabytes upload max size can go until 700 MB nao se sabe porque |
52 | pontos possiveis de ajuste Fazer um UPLOAD Servlet |
65 | pontos possiveis de ajuste Fazer um UPLOAD Servlet |
53 | ver mais em app.properties max.file.size.upload.mbytes |
66 | ver mais em app.properties max.file.size.upload.mbytes |
54 | 67 | ||
55 | aqui esta 50 para permitir ao App controlar e poder ser aumentado nao sendo afetado por este parametro |
68 | aqui esta 50 para permitir ao App controlar e poder ser aumentado nao sendo afetado por este parametro |
56 | --> |
69 | --> |
57 | <controller maxFileSize="50971520" processorClass="org.apache.struts.tiles.TilesRequestProcessor" /> |
70 | <controller maxFileSize="50971520" processorClass="org.apache.struts.tiles.TilesRequestProcessor" /> |
58 | <!--<message-resources parameter="MessageResources"/>--> |
71 | <!--<message-resources parameter="MessageResources"/>--> |
59 | <!--<message-resources parameter="MessageResources" factory="pt.estgp.estgweb.domain.utils.ReloadablePropertyMessageResourcesFactory"/>--> |
72 | <!--<message-resources parameter="MessageResources" factory="pt.estgp.estgweb.domain.utils.ReloadablePropertyMessageResourcesFactory"/>--> |
60 | 73 | ||
61 | 74 | ||
62 | <plug-in className="org.apache.struts.tiles.TilesPlugin"> |
75 | <plug-in className="org.apache.struts.tiles.TilesPlugin"> |
63 | <set-property property="definitions-config" value="/WEB-INF/tiles-default.xml"/> |
76 | <set-property property="definitions-config" value="/WEB-INF/tiles-default.xml"/> |
64 | </plug-in> |
77 | </plug-in> |
65 | 78 | ||
66 | 79 | ||
67 | </struts-config> |
- | |
68 | 80 | </struts-config> |
|
- | 81 |