Top Description Methods
javax.mvc

public @Interface View

extends Annotation
Annotations
@Target:METHOD, TYPE
@Retention:RUNTIME
@Documented
@Inherited
Imports
javax.mvc.Controller, java.lang.annotation.Documented, .Inherited, .Retention, .Target

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() {
        ...
    }
Author
Santiago Pericas-Geertsen
Since
1.0
See Also
Controller

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

view name
value
()

The name of the view

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

The name of the view

Returns:String

view name