PROTECTED]
Sent: Thursday, November 06, 2003 3:33 AM
Subject: Re: Trouble redirecting
Hubert,
I can't thank you enough for this fix! It really saved me when nothing
else
was working. Thank you, Thank you, Thank you - and long live the
struts-user
list :)
Marcella
From: Hubert Rabago
What does your action mapping look like and what are your returning to struts
from within your Action?
You can use redirect=true to redirect to yahoo:
action path=...
forward name=redirectToYahoo path=http://www.yahoo.com; redirect=true/
/action
and in your Action:
return
If you want to do the redirect from within your Action, you can still use
response.sendRedirect(http://www.yahoo.com;); and then return null to Struts
instead of an ActionForward.
--- Hubert Rabago [EMAIL PROTECTED] wrote:
What does your action mapping look like and what are your returning to
[EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Trouble redirecting
Date: Wed, 5 Nov 2003 08:49:41 -0800 (PST)
If you want to do the redirect from within your Action, you can still use
response.sendRedirect(http
Hubert Rabago wrote:
What does your action mapping look like and what are your returning to struts
from within your Action?
You can use redirect=true to redirect to yahoo:
action path=...
forward name=redirectToYahoo path=http://www.yahoo.com; redirect=true/
/action
and in your Action:
is in.
Thanks again,
Marcella
From: Hubert Rabago [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Trouble redirecting
Date: Wed, 5 Nov 2003 08:49:41 -0800 (PST)
If you want to do the redirect from within your
Marcella Turner wrote:
The contextPath may prove to be a real problem for me since I would like
to transfer control to a servlet in a different contextPath than the one
my app is in.
Why don't you post the syntax of the exact page you are trying to
redirect to. As far as I know you will need
to work to
http://www.yahoo.com yet I'm waiting to construct the real absolute path
just yet.
From: Rick Reumann [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Trouble redirecting
Date: Wed, 05 Nov 2003 12:33:56
can't get the redirect to work to
http://www.yahoo.com yet I'm waiting to construct the real absolute path
just yet.
From: Rick Reumann [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Trouble redirecting
]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Trouble redirecting
Date: Wed, 5 Nov 2003 10:56:31 -0800 (PST)
It looks like you're not the first to have redirect=true backfire on you
when
trying to redirect to an absolute path. I wonder why that is. You can try
response.sendRedirect
Subject: Re: Trouble redirecting
Hubert,
Thanks for this suggestion, I would like to try it. So, in my action I
have:
response.sendRedirect(http://www.yahoo.com;);
How/where am I returning a NULL?
Thanks,
Marcella
From: Hubert Rabago [EMAIL PROTECTED]
Reply-To: Struts
://www.yahoo.com;);
How/where am I returning a NULL?
Thanks,
Marcella
From: Hubert Rabago [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Trouble redirecting
Date: Wed, 5 Nov 2003 10:56:31 -0800 (PST
Mailing List [EMAIL PROTECTED]
Subject: Re: Trouble redirecting
Date: Wed, 5 Nov 2003 12:12:16 -0800 (PST)
public ActionForward execute(...) {
response.sendRedirect(http://www.yahoo.com;);
return null;
}
--- Marcella Turner [EMAIL PROTECTED] wrote:
Hubert,
Thanks for this suggestion
13 matches
Mail list logo