@Path(value="/") @Controller @View(value="hello.jsp") public class HelloController extends Object
View annotation with void and non-void methods. If a method
decorated with View returns null, the value in View should
be used.| Constructor and Description |
|---|
HelloController() |
| Modifier and Type | Method and Description |
|---|---|
String |
byeController()
Method that overrides the @View annotation.
|
String |
byeControllerClass()
Method that overrides the @View annotation from class.
|
String |
nullController()
Method that returns a null value.
|
String |
nullControllerClass()
Method that returns a null value.
|
void |
voidController()
Void method with @View annotation.
|
void |
voidControllerClass()
Void method with @View annotation from class.
|
@GET @Path(value="void") @View(value="hello.jsp") public void voidController()
@GET @Path(value="string") @View(value="hello.jsp") public String byeController()
@GET @Path(value="null") @View(value="hello.jsp") public String nullController()
@GET @Path(value="class/void") public void voidControllerClass()
@GET @Path(value="class/string") public String byeControllerClass()
@GET @Path(value="class/null") public String nullControllerClass()
Copyright © 2015. All Rights Reserved.