Commit a47eb108b8826529cd5b47d49eb06db363a70359
1 parent
7473c7c5
Exists in
master
and in
1 other branch
git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/ASES%20-%20Web/ASES%20-%2…
…0Web/Fontes/avaliador-web@10657 c2178572-b5ca-4887-91d2-9e3a90c7d55b
Showing
1 changed file
with
9 additions
and
2 deletions
Show diff stats
src/main/java/br/com/ases/controller/ContatoController.java
@@ -19,26 +19,33 @@ import br.com.caelum.vraptor.Post; | @@ -19,26 +19,33 @@ import br.com.caelum.vraptor.Post; | ||
19 | import br.com.caelum.vraptor.Resource; | 19 | import br.com.caelum.vraptor.Resource; |
20 | import br.com.caelum.vraptor.Result; | 20 | import br.com.caelum.vraptor.Result; |
21 | import br.com.caelum.vraptor.Validator; | 21 | import br.com.caelum.vraptor.Validator; |
22 | +import br.com.caelum.vraptor.ioc.spring.VRaptorRequestHolder; | ||
22 | import br.com.caelum.vraptor.validator.ValidationMessage; | 23 | import br.com.caelum.vraptor.validator.ValidationMessage; |
23 | 24 | ||
24 | @Resource | 25 | @Resource |
25 | @Path("/contato") | 26 | @Path("/contato") |
26 | public class ContatoController { | 27 | public class ContatoController { |
27 | 28 | ||
29 | + private String tituloPagina = "Contato - ASES"; | ||
28 | private Result result; | 30 | private Result result; |
29 | private Validator validator; | 31 | private Validator validator; |
30 | private ServletContext application; | 32 | private ServletContext application; |
31 | 33 | ||
34 | + | ||
35 | + | ||
32 | public ContatoController(Result result, Validator validator,ServletContext application) { | 36 | public ContatoController(Result result, Validator validator,ServletContext application) { |
37 | + | ||
33 | this.result = result; | 38 | this.result = result; |
34 | this.validator = validator; | 39 | this.validator = validator; |
35 | this.application = application; | 40 | this.application = application; |
41 | + | ||
42 | + //Seta o título da página | ||
43 | + VRaptorRequestHolder.currentRequest().getServletContext().setAttribute("tituloPagina", tituloPagina); | ||
36 | } | 44 | } |
37 | 45 | ||
38 | @Path("") | 46 | @Path("") |
39 | public void index() { | 47 | public void index() { |
40 | - | ||
41 | - System.out.println("passando por aki"); | 48 | + |
42 | } | 49 | } |
43 | 50 | ||
44 | @Post("/confirmacao") | 51 | @Post("/confirmacao") |