struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil" <pee...@letthemusicplay.de>
Subject Re: Trouble redirecting
Date Wed, 05 Nov 2003 20:07:35 GMT
Hi Marcella,

in the struts api there is an entry about the path attribute:
The URL to which this entry points, which must start with a slash ("/")
character.

Phil


----- Original Message -----
From: "Marcella Turner" <mtstruts@hotmail.com>
To: <struts-user@jakarta.apache.org>
Sent: Wednesday, November 05, 2003 8:43 PM
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 <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
>


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