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 | 19 | import br.com.caelum.vraptor.Resource; |
20 | 20 | import br.com.caelum.vraptor.Result; |
21 | 21 | import br.com.caelum.vraptor.Validator; |
22 | +import br.com.caelum.vraptor.ioc.spring.VRaptorRequestHolder; | |
22 | 23 | import br.com.caelum.vraptor.validator.ValidationMessage; |
23 | 24 | |
24 | 25 | @Resource |
25 | 26 | @Path("/contato") |
26 | 27 | public class ContatoController { |
27 | 28 | |
29 | + private String tituloPagina = "Contato - ASES"; | |
28 | 30 | private Result result; |
29 | 31 | private Validator validator; |
30 | 32 | private ServletContext application; |
31 | 33 | |
34 | + | |
35 | + | |
32 | 36 | public ContatoController(Result result, Validator validator,ServletContext application) { |
37 | + | |
33 | 38 | this.result = result; |
34 | 39 | this.validator = validator; |
35 | 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 | 46 | @Path("") |
39 | 47 | public void index() { |
40 | - | |
41 | - System.out.println("passando por aki"); | |
48 | + | |
42 | 49 | } |
43 | 50 | |
44 | 51 | @Post("/confirmacao") | ... | ... |