Commit 9a8ebc03fc2d8550ef833a01c326d9ab340a3ca1
1 parent
a47eb108
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@10658 c2178572-b5ca-4887-91d2-9e3a90c7d55b
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
src/main/java/br/com/ases/controller/IndexController.java
... | ... | @@ -3,9 +3,11 @@ package br.com.ases.controller; |
3 | 3 | import br.com.caelum.vraptor.Path; |
4 | 4 | import br.com.caelum.vraptor.Resource; |
5 | 5 | import br.com.caelum.vraptor.Result; |
6 | +import br.com.caelum.vraptor.ioc.spring.VRaptorRequestHolder; | |
6 | 7 | @Resource |
7 | 8 | public class IndexController { |
8 | 9 | |
10 | + private String tituloPagina = "ASES - Avaliador e Simulador de AcessibilidadE em Sites"; | |
9 | 11 | private Result result; |
10 | 12 | |
11 | 13 | public IndexController (Result result) { |
... | ... | @@ -22,6 +24,8 @@ public class IndexController { |
22 | 24 | public void about() {} |
23 | 25 | |
24 | 26 | @Path("/") |
25 | - public void index() {} | |
26 | - | |
27 | + public void index() { | |
28 | + VRaptorRequestHolder.currentRequest().getServletContext().setAttribute("tituloPagina", tituloPagina); | |
29 | + } | |
30 | + | |
27 | 31 | } | ... | ... |