I have used redirect in struts.xml file in two ways as :

1.

<result name="home" type="redirect">home.action</result>

2.

<result name="failure" type="redirect-action">
                <param name="namespace">/</param>
                <param name="actionName">home</param>
            </result>


Regards,
---------------------------------------------------------
Girish Naik
Mobile:-+91-09740091638
girish.n...@gmail.com
Groucho Marx <http://www.brainyquote.com/quotes/authors/g/groucho_marx.html>
- "A hospital bed is a parked taxi with the meter running."

On Sun, May 31, 2009 at 1:50 PM, Crishantha Nanayakkara <
c.nanayakk...@gmail.com> wrote:

>
> Hi,
>
> I have a requirement to use a response.sendRedirect() within my Action
> class. Basically this action class is used to manipulate a porltet.
>
> Unlike Struts1, we do not directly have any processAction() method and
> ActionRequest and ActionResponse objects to do a response.sendRedirect.
>
> I just want to know how do we get about executing the response.sendRedirect
> with Struts2? What should be the interface to implement within the action
> class to do this. (Just like ServletRequestAware to get the
> HttpServletRequest)
>
> Appriciate your help on this.
>
> Best Regards
> Crishantha
> --
> View this message in context:
> http://www.nabble.com/response.sendRedirect%28%29-with-Struts2-within-a-portlet-tp23800916p23800916.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to