struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Watters" <andr...@gointernet.co.uk>
Subject Re: Constructing absolute URL in struts 1.1-b2
Date Wed, 11 Dec 2002 16:28:07 GMT
Thanks again, it must be something in our application that is causing the
exception then. Off I go to investigate...

Andrew


----- Original Message -----
From: "Edgar P. Dollin" <edgar@blue-moose.net>
To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
Sent: Wednesday, December 11, 2002 4:22 PM
Subject: RE: Constructing absolute URL in struts 1.1-b2


> I use the RequestDispatcher without a problem.  I don't believe struts
> does commits (I think I read something about tiles making commits
> however).
>
> Edgar
>
> -----Original Message-----
> From: Andrew Watters [mailto:andreww@gointernet.co.uk]
> Sent: Wednesday, December 11, 2002 9:56 AM
> To: struts-user@jakarta.apache.org
> Subject: Re: Constructing absolute URL in struts 1.1-b2
>
>
> Thanks Edgar for your prompt reply. It is good to know I'm not going mad
> - I searched the archives but couldn't find anything.
>
> I tried both request.getRequestDispatcher.forward and
> response.sendRedirect but in both cases I got an IllegalStateException
> because the response was already committed. I haven't done anything to
> commit the response in my controller, I think, so I assumed that the
> struts framework had done so. Is this assumption correct do you know?
>
> Thanks again for your help.
> Andrew
>
>
> ----- Original Message -----
> From: "Edgar P. Dollin" <edgar@blue-moose.net>
> To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
> Sent: Wednesday, December 11, 2002 2:51 PM
> Subject: RE: Constructing absolute URL in struts 1.1-b2
>
>
> > This is a known bug and the solution is not known at this time
> > although it is stated it will be fixed.
> >
> > If you need an immediate solution you might consider using
> > javax.servlet.RequestDispatcher from
> > ServletRequest.getRequestDispatcher.
> >
> > Edgar
> >
> > -----Original Message-----
> > From: Andrew Watters [mailto:andreww@gointernet.co.uk]
> > Sent: Wednesday, December 11, 2002 9:37 AM
> > To: 'struts-user@jakarta.apache.org'
> > Subject: Constructing absolute URL in struts 1.1-b2
> >
> >
> > I'm trying to create an absolute URL to redirect to. The URL is
> > generated dynamically at runtime so I can't declare it in the config
> > file for the module. My controller code ends with -
> >
> > String url = getPaymentServerUrl(); // Returns an absolute URL
> > ActionForward forward = new ActionForward(url, true); return forward;
> >
> > I have tried all the different ActionForward constructors but Struts
> > always pre-pends the web app name and module name so that it tries to
> > redirect to
> >
> > /webapp/module/http://www.etc.com/etc
> >
> > instead of
> >
> > http://www.etc.com/etc
> >
> >
> > Any suggestions would be greatly appreciated.
> > Andrew
> >
> >
> > --
> > 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>
>
>
> --
> 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>


Mime
View raw message