The following example: I have a superclass and a subclass for the struts action. The superclass defines @Results , and the subclass must define additional specific @Result entries. For example:
@Results({ @Result(name=BaseAction.ERROR, location="/WEB-INF/jsp/error.jsp") }) public abstract class BaseAction extends ActionSupport implements ServletRequestAware { ... }
.. and subclass
@Results({ @Result(name=BaseAction.INDEX, location="/WEB-INF/jsp/reporting/index.jsp") }) public class ReportAction extends BaseAction { ... }
My question is whether the ReportAction instance has only @Result of INDEX , or does it also contain any @Result records defined anyway, if they are superclasses. My ReportAction knows about the location set for BaseAction.ERROR ??
Thanks Martin
java superclass annotations struts2
uncrase
source share