At the end of your action you can ...

                    actionForward = new ActionForward (
                        "yourUrl",
                        true
                    );
                    return (actionForward);

The trick is in the "true". It means that instead of just internally
forwarding control to a jsp, Struts will send a redirect response to your
browser to go to your URL.

You might want to have a look at the documentation for the ActionForward
class at:

http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/action/Acti
onForward.html

Marcus

-----Original Message-----
From: Thinh Doan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 11:38 PM
To: Struts-User
Subject: forward to a url, possible?


In my LogoffAction, after finish doing the housekeeping, I'd like to forward
to a url (http address), instead of a login page. Is it possible? Pls show a
way.

Thanks for your time & help.

Thinh


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

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

Reply via email to