I would point out that if you look in source for
org.apache.struts.action.Action execute() is not defined on the Action class
in 1.0.2. I expect that this is a 1.1 thing.



-----Original Message-----
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 5:22 AM
To: 'Struts Users Mailing List'
Subject: RE: Configuration Changes for Action extension??


They are; why do you think they aren't in your case?

And perform() is deprecated (even if the Struts team has not updated the
JavaDocs); use execute() instead.  :-)

Mark

-----Original Message-----
From: Struts Developer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 8:04 AM

To review... I wanted to insert a layer of abstraction between 
org.apache.struts.action.Action and my web application's various 
instantiations of Action.

MyAction subclasses DHSAction, which inturn subclasses Action.

Originally DHSAction.java looked like this:

package dhs.struts.action;

import org.apache.struts.action.Action ;

public class DHSAction extends Action { }




Now, it looks like this:

package dhs.struts.action;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action ;
import org.apache.struts.action.ActionForm ;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.util.MessageResources;

public class DHSAction extends Action {

        public ActionForward perform(
                ActionMapping mapping,
                ActionForm form,
                HttpServletRequest request,
                HttpServletResponse response)
                throws IOException, ServletException {

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

I am not the sharpest Java tool in the shed, but I thought that public 
classes and public methods would be visible to subclasses without having to
repeat the method signature.

--
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