Saved Bookmarks
| 1. |
What Is The Purpose Of @results Annotation? |
|
Answer» A @Results annotation is a collection of results. Under the @Results annotation, we can have multiple @Result annotations. @Results({ @Result(name="SUCCESS", value="/success.jsp"), @Result(name="ERROR", value="/error.jsp") }) PUBLIC class Employee extends ACTIONSUPPORT{ ... } A @Results annotation is a collection of results. Under the @Results annotation, we can have multiple @Result annotations. @Results({ @Result(name="success", value="/success.jsp"), @Result(name="error", value="/error.jsp") }) public class Employee extends ActionSupport{ ... } |
|