You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Paul, R. Chip" <RO...@saic.com> on 2004/04/08 23:28:12 UTC

Custom ActionForward subclass in web.xml

I ready how to do this once, and I can't seem to find the doc/article/email
I read it in.

I want to make my subclass of ActionForward the default used by the entire
application, so I don't have to do:

<forward className="....."/>

Every time I want to use it.  I know there's something you can put in
web.xml that tells struts which class to use, can anyone send me a snippet
or point me to something you have bookmarked?

Chip Paul
Sr Software Engineer
ComFrame Software Corporation
 
Listen.Understand.Innovate
www.comframe.com
 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Custom ActionForward subclass in web.xml

Posted by Kumar M <ku...@netscape.net>.
You could use the "forward" param for ActionServlet:

        <init-param>
          <param-name>forward</param-name>
          <param-value>com.this.is.my.CustomActionForward</param-value>
        </init-param>       

But, I think this is deprecated.

ROY.C.PAUL.III@saic.com wrote:

>I ready how to do this once, and I can't seem to find the doc/article/email
>I read it in.
>
>I want to make my subclass of ActionForward the default used by the entire
>application, so I don't have to do:
>
><forward className="....."/>
>
>Every time I want to use it.  I know there's something you can put in
>web.xml that tells struts which class to use, can anyone send me a snippet
>or point me to something you have bookmarked?
>
>Chip Paul
>Sr Software Engineer
>ComFrame Software Corporation
> 
>Listen.Understand.Innovate
>www.comframe.com
> 
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org