Have you implemente the struts-config manually, or have
you used a tool like XDoclet to generate it ?

Cause i had the same problems cause XDoclet produces some
errors here.

Oliver

-----Original Message-----
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 4:24 PM
To: 'Struts Users Mailing List'
Subject: RE: Really Dumb Newbie Question about Extending Action


Try this as a bare minimum:

package dhs.struts.action;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForward;

public class ORGAction extends Action {
    public ActionForward execute(
                        ActionMapping mapping,
                        ActionForm form,
                        HttpServletRequest request,
                        HttpServletResponse response)
                        throws Exception {

        return mapping.findForward( "success");
    }
}

Mark

-----Original Message-----
From: Struts Developer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 9:46 AM
To: [EMAIL PROTECTED]
Subject: RE: Really Dumb Newbie Question about Extending Action


Okay, here's my source:

-----------------start
package dhs.struts.action;

import org.apache.struts.action.Action ;

public class ORGAction extends Action { }

-----------------end

Mark N.


>From: "Galbreath, Mark" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: RE: Really Dumb Newbie Question about Extending Action
>Date: Wed, 10 Apr 2002 09:29:39 -0400
>
>dunno...let's see the source of ORGAction().
>
>Mark
>
>-----Original Message-----
>From: Struts Developer [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, April 10, 2002 9:20 AM
>
>I would like to add a layer of inheritance between the
>org.apache.struts.action.Action class and my application's Action
>subclasses.
>
>IE: MyAction extends ORGAction extends Action.
>
>Seems simple enough, however when I set this up and run my applicaiton it
>doesn't work. No error messages, no compile errors, no nothing. When
>MyAction extends Action directly the application runs as expected and I get
>the proper output and log messages, like so:
>
>TIA,
>Mark
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>


_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to