Saved Bookmarks
| 1. |
What Is The Purpose Of @action Annotation? |
|
Answer» This is used to decorate the execute() method. The Action method also TAKES in a VALUE which is the URL on which the action is invoked. public class Employee extends ACTIONSUPPORT{ private String name; private int AGE; @Action(value="/empinfo") public String execute() { return SUCCESS; } } This is used to decorate the execute() method. The Action method also takes in a value which is the URL on which the action is invoked. public class Employee extends ActionSupport{ private String name; private int age; @Action(value="/empinfo") public String execute() { return SUCCESS; } } |
|