InterviewSolution
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; }}
|
|