Re: RedirectingActionForward

2003-02-03 Thread David Graham
This is a known bug that will be fixed before 1.1 final.

David




From: Michelle Harris [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RedirectingActionForward
Date: Mon, 03 Feb 2003 13:09:46 -0500

Hello,

We are using Struts RedirectingActionForward with Struts 1.1. The base
context path is being prepended to the URL. So instead of going to
http://dev.server.com/devpage; as we want, it goes to
http://localhost:8080/mypage/http://dev.server.com/devpage.

The following is outputted prior to the call:
URL = http://dev.server.com/devpage
DEBUG 2003-01-30 15:56:46,490 [Thread-10] -
processForwardConfig(ForwardConfig[name=null,path=http://dev.server.com/devpage
s,redirect=true,contextRelative=false])

We *thought* it worked with Struts 1.0. Did anything change? Or what
could we be doing wrong. Your help would be greatly appreciated.

Many thanks,
Michelle Harris



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



_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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



Re: RedirectingActionForward

2003-02-03 Thread Michelle Harris
Thanks. Is this fix already in cvs or a nightly build? If not, we can 
fix and submit a patch to you.

Thanks,
Michelle


David Graham wrote:
This is a known bug that will be fixed before 1.1 final.

David




From: Michelle Harris [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RedirectingActionForward
Date: Mon, 03 Feb 2003 13:09:46 -0500

Hello,

We are using Struts RedirectingActionForward with Struts 1.1. The base
context path is being prepended to the URL. So instead of going to
http://dev.server.com/devpage; as we want, it goes to
http://localhost:8080/mypage/http://dev.server.com/devpage.

The following is outputted prior to the call:
URL = http://dev.server.com/devpage
DEBUG 2003-01-30 15:56:46,490 [Thread-10] -
processForwardConfig(ForwardConfig[name=null,path=http://dev.server.com/devpage 

s,redirect=true,contextRelative=false])

We *thought* it worked with Struts 1.0. Did anything change? Or what
could we be doing wrong. Your help would be greatly appreciated.

Many thanks,
Michelle Harris



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



_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


-
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]




Re: RedirectingActionForward

2003-02-03 Thread David Graham
There is an open bug report on this with several patches posted.  The 
problem actually extends beyond RedirectingActionForward into the 
html:link tag, forward struts-config.xml element, and maybe some other 
places.  IMO, this is the last major bug in 1.1.

David



From: Michelle Harris [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: RedirectingActionForward
Date: Mon, 03 Feb 2003 13:31:13 -0500

Thanks. Is this fix already in cvs or a nightly build? If not, we can fix 
and submit a patch to you.

Thanks,
Michelle


David Graham wrote:
This is a known bug that will be fixed before 1.1 final.

David




From: Michelle Harris [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RedirectingActionForward
Date: Mon, 03 Feb 2003 13:09:46 -0500

Hello,

We are using Struts RedirectingActionForward with Struts 1.1. The base
context path is being prepended to the URL. So instead of going to
http://dev.server.com/devpage; as we want, it goes to
http://localhost:8080/mypage/http://dev.server.com/devpage.

The following is outputted prior to the call:
URL = http://dev.server.com/devpage
DEBUG 2003-01-30 15:56:46,490 [Thread-10] -
processForwardConfig(ForwardConfig[name=null,path=http://dev.server.com/devpage

s,redirect=true,contextRelative=false])

We *thought* it worked with Struts 1.0. Did anything change? Or what
could we be doing wrong. Your help would be greatly appreciated.

Many thanks,
Michelle Harris



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




_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


-
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]



_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



Re: RedirectingActionForward?

2002-10-23 Thread Billy Ng
I posted a question earlier regarding the redirect.  I notice I can't do the
sendRedirect after the mapping.findForward is called.  Oterwise, it works
very good with return null.

Billy Ng

- Original Message -
From: Eddie Bush [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, October 07, 2002 8:59 PM
Subject: Re: RedirectingActionForward?


 I need to dig into the source more deeply.  I looked briefly but
 couldn't satisfy myself as to whether you could do a redirect that
 wasn't (at least) relative to the application.  Sorry, but this isn't an
 issue I've had to face.  As a last resort you could do:

 response.sendRedirect(response.encodeUrl(path));
 return null;

 Returning null is very important, as it signals the RequestProcessor
 that it doesn't need to do anything else.

 Hopefully someone else will have additional wisdom for you.

 Angie Lin wrote:

  Trying again
 
  Anybody with clues on why RedirectingActionForward isn't redirecting?
  This used to work in 1.0.2.
 
  Angie Lin wrote:
 
  Hi there,
 
  RedirectingActionForward doesn't seem to redirect anymore.  It's
  trying to forward and I'm ending up with a garbled URL like:
 
 http://localhost:7001/myapp/http://someothersite.com/
 
  My code is:
 ActionForward oldfwd=mapping.findForward(othersite);
 String path=oldfwd.getPath();
 path.append(?id=+id);
 RedirectingActionForward newfwd=new RedirectingActionForward(path);
 return newfwd;
 
 
  This used to work in 1.0.2, but I've since upgraded to 1.1b.   I'm
  also using WL6.1 if that helps at all. I've searched the archive and
  read the thread on message 38728, but that problem was fixed by
  setting the contextRelative attribute to true, which doesn't quite
  help me, since I'm trying to forward to another domain. Any other
  configuration settings I might be missing?
 

 --
 Eddie Bush




 --
 To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:struts-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: RedirectingActionForward?

2002-10-07 Thread Angie Lin

Trying again

Anybody with clues on why RedirectingActionForward isn't redirecting? 
 This used to work in 1.0.2.  



Angie Lin wrote:

 Hi there,

 RedirectingActionForward doesn't seem to redirect anymore.  It's 
 trying to forward and I'm ending up with a garbled URL like:

http://localhost:7001/myapp/http://someothersite.com/

 My code is:
ActionForward oldfwd=mapping.findForward(othersite);
String path=oldfwd.getPath();
path.append(?id=+id);
RedirectingActionForward newfwd=new RedirectingActionForward(path);
return newfwd;


 This used to work in 1.0.2, but I've since upgraded to 1.1b.   I'm 
 also using WL6.1 if that helps at all. 
 I've searched the archive and read the thread on message 38728, but 
 that problem was fixed by setting the contextRelative attribute to 
 true, which doesn't quite help me, since I'm trying to forward to 
 another domain. 
 Any other configuration settings I might be missing?



-- 
Angie Lin
[EMAIL PROTECTED]
408.519.9250



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




Re: RedirectingActionForward?

2002-10-07 Thread Eddie Bush

I need to dig into the source more deeply.  I looked briefly but 
couldn't satisfy myself as to whether you could do a redirect that 
wasn't (at least) relative to the application.  Sorry, but this isn't an 
issue I've had to face.  As a last resort you could do:

response.sendRedirect(response.encodeUrl(path));
return null;

Returning null is very important, as it signals the RequestProcessor 
that it doesn't need to do anything else.

Hopefully someone else will have additional wisdom for you.

Angie Lin wrote:

 Trying again

 Anybody with clues on why RedirectingActionForward isn't redirecting? 
 This used to work in 1.0.2. 

 Angie Lin wrote:

 Hi there,

 RedirectingActionForward doesn't seem to redirect anymore.  It's 
 trying to forward and I'm ending up with a garbled URL like:

http://localhost:7001/myapp/http://someothersite.com/

 My code is:
ActionForward oldfwd=mapping.findForward(othersite);
String path=oldfwd.getPath();
path.append(?id=+id);
RedirectingActionForward newfwd=new RedirectingActionForward(path);
return newfwd;


 This used to work in 1.0.2, but I've since upgraded to 1.1b.   I'm 
 also using WL6.1 if that helps at all. I've searched the archive and 
 read the thread on message 38728, but that problem was fixed by 
 setting the contextRelative attribute to true, which doesn't quite 
 help me, since I'm trying to forward to another domain. Any other 
 configuration settings I might be missing? 


-- 
Eddie Bush




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




Re: RedirectingActionForward catch?

2001-03-22 Thread Kare Nuorteva


Hello,

Because RedirectingActionForward does HttpServletResponse.sendRedirect(),
which sets HTTP Location header to response. You probably save your beans
to request scope and because Location header can be the only header in
response (/ http spec) the original request is deleted.

Forget reasonable urls or use session scope for beans.

Cheers,
Kare

On Thu, 22 Mar 2001, Stefan Winterstein wrote:

 
 In the example application, I'm setting the 'forward' property for the
 ActionServlet to 'org.apache.struts.action.RedirectingActionForward' as
 described in the user guide (that's because I like to see more reasonable URLs
 in the browser).
 
 When I do this, however, the application ceases to work. For example, when I
 try to "register" at the start page, I get
 
  JspException: No bean found under attribute key registrationForm
 
 What's the catch with RedirectingActionForward?
 
 -- 
 
  -Stefan
 
  new to Struts, so pardon my ignorance... :)
 

-- 
Kare Nuorteva
http://www.kare.uklinux.net/