Skip to content

Commit cff771c

Browse files
committed
pequenas mudanças.
1 parent 02bad9a commit cff771c

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

MVC1.0-samples/MVC-TiposRetornos/src/main/java/br/org/soujava/rio/application/APP.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,11 @@
3838
*/
3939
@ApplicationPath("app")
4040
public class APP extends Application {
41-
42-
/* (non-Javadoc)
43-
* @see javax.ws.rs.core.Application#getProperties()
44-
*/
41+
4542
@Override
4643
public Map<String, Object> getProperties() {
47-
Map<String,Object> ma= new HashMap<>();
48-
ma.put(Properties.DEFAULT_VIEW_FILE_EXTENSION, "jsp");
49-
return ma;
50-
44+
Map<String,Object> defaultViewFile= new HashMap<>();
45+
defaultViewFile.put(Properties.DEFAULT_VIEW_FILE_EXTENSION, "jsp");
46+
return defaultViewFile;
5147
}
5248
}

MVC1.0-samples/MVC-TiposRetornos/src/main/java/br/org/soujava/rio/controller/RetornosController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public Response getResponse() {
6969
@GET
7070
@Path("ViewAble")
7171
public Viewable getViewAble() {
72-
this.models.put("retorno", "Retorno do Tipo Viewable,especifico da RI OZARK");
72+
this.models.put("retorno", "Retorno do Tipo Viewable,especifico da RI Krazo");
7373
return new Viewable("retorno");
7474
}
7575
}

MVC1.0-samples/MVC-TiposRetornos/src/main/webapp/WEB-INF/views/retorno.jsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<html>
55
<head>
66
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7-
<title>MVC- Tipo de Retornos</title>
7+
<title>MVC- Tipos de Retornos</title>
88
</head>
99
<body>
10-
Parabéns, chegou aqui usando ${retorno} ! .
10+
<h1>Parabéns, chegou aqui usando ${retorno} ! .</h1>
1111
</body>
1212
</html>

MVC1.0-samples/MVC-TiposRetornos/src/main/webapp/index.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
<a href="app/retornos/void">Retorno com Void - @View</a> <br>
1111
<a href="app/retornos/String">Retorno com String</a> <br>
1212
<a href="app/retornos/Response">Retorno com Response - JAX-RS</a> <br>
13-
<a href="app/retornos/ViewAble">Retorno com Viewable - Ozark-RI</a>
13+
<a href="app/retornos/ViewAble">Retorno com Viewable - Krazo-RI</a>
1414
</body>
1515
</html>

0 commit comments

Comments
 (0)