struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcella Turner" <mtstr...@hotmail.com>
Subject Re: Trouble redirecting
Date Thu, 06 Nov 2003 02:33:17 GMT
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 <jakartauser@yahoo.com>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: Struts Users Mailing List <struts-user@jakarta.apache.org>
>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 <mtstruts@hotmail.com> wrote:
> > 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 <jakartauser@yahoo.com>
> > >Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> > >To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> > >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() within your action class and just return null.
> > >
> > >--- Marcella Turner <mtstruts@hotmail.com> wrote:
> > > > Hi Rick and Hubert,
> > > >
> > > > Thanks for giving my problem some thought.  My action mapping is 
>below:
> > > >
> > > > <action path="/verifyXYZ" name="obtainXYZFormBean"  scope="request"
> > > > type="my.package.actions.VerifyXYZAction" input="/SelectXYZ.jsp"
> > > > validate="true">
> > > > 	<forward name="success" path="/SelectTerms.jsp">
> > > > 	</forward>
> > > > 	<forward name="back" path="/ViewPrices.jsp">
> > > > 	</forward>
> > > > 	<forward name="failure" path="/SelectSPR.jsp">
> > > > 	</forward>
> > > > 	<forward name="goSpt" path="http://www.yahoo.com" redirect="true"/>
> > > > </action>
> > > >
> > > > I believe that I will need to construct an absolute path in order to
> > > > redirect to the other app, however since I 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 <struttin@reumann.net>
> > > > >Reply-To: "Struts Users Mailing List" 
><struts-user@jakarta.apache.org>
> > > > >To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> > > > >Subject: Re: Trouble redirecting
> > > > >Date: Wed, 05 Nov 2003 12:33:56 -0500
> > > > >
> > > > >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 the full http:// path to 
>redirect to
> > >an
> > > > >application in a totally different context from a forward mapping.

>Are
> > >you
> > > > >putting in the full path to this other servlet you want to redirect

>to?
> > > > >
> > > > >--
> > > > >Rick
> > > > >
> > > > >
> > > > 
> >---------------------------------------------------------------------
> > > > >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > > >For additional commands, e-mail: 
>struts-user-help@jakarta.apache.org
> > > > >
> > > >
> > > > _________________________________________________________________
> > > > Is your computer infected with a virus?  Find out with a FREE 
>computer
> > >virus
> > > > scan from McAfee.  Take the FreeScan now!
> > > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> > > >
> > > >
> > > > 
>---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > > >
> > >
> > >
> > >__________________________________
> > >Do you Yahoo!?
> > >Protect your identity with Yahoo! Mail AddressGuard
> > >http://antispam.yahoo.com/whatsnewfree
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> >
> > _________________________________________________________________
> > Crave some Miles Davis or Grateful Dead?  Your old favorites are always
> > playing on MSN Radio Plus. Trial month free!
> > http://join.msn.com/?page=offers/premiumradio
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
>
>__________________________________
>Do you Yahoo!?
>Protect your identity with Yahoo! Mail AddressGuard
>http://antispam.yahoo.com/whatsnewfree
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>

_________________________________________________________________
MSN Shopping upgraded for the holidays!  Snappier product search... 
http://shopping.msn.com


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


Mime
View raw message