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