you can ActionForward class to pass in your path and a boolean value for redirect to tell the class to perform a RequestDistcher.forward() or HttpServletResponse.sendRedirect(). The default is forward so set the redirect flag to True will do sendRedirect().
or you can use its direct known subclasses, ForwardingActionForward or RedirectingActionForward.
Hopefully, this will help. Thanks.
See-Yam Lim
> -----Original Message-----
> From: Kristopher Brown
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 25, 2001 3:40 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: why does struts use forward instead of redirect
>
>
> Can you switch between the two, i.e. make struts use redirect?
>
> -----Original Message-----
> From: Jim Richards [mailto:[EMAIL PROTECTED]]
> Sent: 25 April 2001 04:09
> To: [EMAIL PROTECTED]
> Subject: Re: why does struts use forward instead of redirect
>
>
>
> >At 11:13 PM 24/04/01 -0400, you wrote:
> >Anyone know why struts uses forward instead of redirect?
>
> A redirect sends a request back to the browser, thus
> generating another
> connection between the client and server. Forward keeps it internal
> to the server, which also means you can re-use the request object.
>
>
> --
> Kumera - a new Open Source Content Management System
> for small to medium web sites written in Perl and using XML
> http://www.cyber4.org/kumera/index.html
>

