Package jakarta.mvc
Annotation Type View
-
@Target({METHOD,TYPE}) @Retention(RUNTIME) @Documented @Inherited public @interface View
Declares a view for a controller that returns void, or for a controller that may return
null
and wants to declare a default value. If declared at the type level, it applies to all controller methods in the type and can be overridden by another instance of this annotation at the method level.Example:
@Controller @View("hello.jsp") public void sayHello() { ... }
- Since:
- 1.0
- Author:
- Santiago Pericas-Geertsen
- See Also:
Controller
-
-
Element Detail
-
value
String value
The name of the view- Returns:
- view name
-
-