@Namespace("/")
@Result(name = "success", location = "/output.jsp")
public class HelloAnno extends ActionSupport{
private String name;
@Action(value = "/annoTest")
public String execute(){
return SUCCESS;
}
@RequiredFieldValidator(message = "Required!")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}