org.apache.struts2.convention.annotation.Action
This annotation can be used to control the URL that maps to a specific method in an Action class. By default, the method that is invoked is the execute method of the action and the URL is based on the package and class names. This annotation allows developers to change the URL or invoke a different method. This also allows developers to specify multiple URLs that will be handled by a single class or a single method.
This can also be used via the Actions annotation to associate multiple URLs with a single method.
Here's an example:
public class MyAction implements Action {
{@code @Action("/foo/bar")}
public String execute() {}
}
| Field Summary | ||
|---|---|---|
| String | DEFAULT_VALUE | |
| Method from org.apache.struts2.convention.annotation.Action Summary: |
|---|
| exceptionMappings, interceptorRefs, params, results, value |
| Method from org.apache.struts2.convention.annotation.Action Detail: |
|---|
|
|
|
|
|