You can use HttpServletResponse.sendRedirect(): http://tinyurl.com/sdgg

Or, and I'm not sure if this works or not, you could have a forward in your
action mapping like this:

<forward path="http://othersite.com/"; redirect="true"/>

-Max

----- Original Message ----- 
From: "ajay brar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 25, 2003 6:39 AM
Subject: redirection - please help


> hi!
> is it possible for me to redirect users to an external site from inside an
> action class.
> ie, say a user clicks /foo, this calls FooAction which does some intial
> processing. I now want to redirect the user to some other site. how can i
do
> that?
> do i write the link out into the response stream?
>
> thanks
> cheers
> Ajay
>
> _________________________________________________________________
> E-mail just got a whole lot better. New ninemsn Premium. Click here
> http://ninemsn.com.au/premium/landing.asp
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to