Ouch! sorry for the nasty c'n'p links in there :o) here's what I meant to post: ----
Rick,
which execute() did you override in your BaseAction class?
public ActionForward execute(ActionMapping mapping, ActionForm form, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws java.lang.Exception
public ActionForward execute(ActionMapping mapping, ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
You probably want to override the latter, and be consistent in your subclasses as well.
HTH,
Colin
Colin Kilburn wrote:
Rick,
which execute() did you override in your BaseAction class? public ActionForward <http://jakarta.apache.org/struts/api/org/apache/struts/action/ActionForward.html> *execute*(ActionMapping <http://jakarta.apache.org/struts/api/org/apache/struts/action/ActionMapping.html> mapping,
ActionForm <http://jakarta.apache.org/struts/api/org/apache/struts/action/ActionForm.html> form,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws java.lang.Exception
public ActionForward <http://jakarta.apache.org/struts/api/org/apache/struts/action/ActionForward.html> *execute*(ActionMapping <http://jakarta.apache.org/struts/api/org/apache/struts/action/ActionMapping.html> mapping,
ActionForm <http://jakarta.apache.org/struts/api/org/apache/struts/action/ActionForm.html> form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
You probably want to override the latter, and be consistent in your subclasses as well.
HTH, Colin
Rick Ashley wrote:
So, doesn't anyone had this kind of problem? Can Struts handle this kind of derivation(subclassing) that was used very often e.g. in C++ based frameworks?
Any suggestion?
- r a
From: "Rick Ashley" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Overriding Action and super.execute Date: Mon, 24 Feb 2003 18:17:42 +0000
Hello,
I have overriding execute method of Strut's Action class to a new BaseAction class (Action is it's parent) and put some 'generic' stuff there. Business classes are derived from this BaseAction class. They might also in some cases override execute method.
My question is that if execute method is overriden also in Business Action class and in BaseAction class too, why sometimes the call below:
return super.execute(mapping, form, request, response);
in Business Action class does not invoke execute method of BaseAction's
class??? It seems to be routed directly to Strut's original Action classes execute method because application continues progressing but does not stop to the debugger breakpoint set to BaseAction class...
Anyone have any hints?
Br
rick
_________________________________________________________________
Overloaded with spam? With MSN 8, you can filter it out http://join.msn.com/?page=features/junkmail&pgmarket=en-gb&XAPID=32&DI=1059
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]