You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Bailey, Shane C." <SH...@saic.com> on 2003/06/02 20:41:01 UTC

Extending ActionServlet

 

Can anyone point me to a code example which extends ActionServlet?

 

I tried the most simplest way I could think of but it didn't work:

 

package my.pack;

 

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import javax.servlet.ServletException;

import org.apache.struts.util.RequestUtils;

 

public final class Controller extends
org.apache.struts.action.ActionServlet

{

    protected void process(HttpServletRequest request, HttpServletResponse
response)

        throws IOException, ServletException {

 

            System.out.println("Controller in place");

            

            super.process(request,response);

 

    }

 

 

}

 

web.xml  change of:

<servlet-class>my.pack.Controller</servlet-class>

 

what else would I have to do?