excuse me for mistake.

You should read "response.sendRedirect()"
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServletResponse.html#sendRedirect(java.lang.String)

Nico.

----- Original Message ----- 
From: "Marcella Turner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 05, 2003 4:06 PM
Subject: Re: Newbie question....redirect


> Nicolas,
>
> I think your reply will help me with my post too -> trying to switch web
> modules - help
> but I don't see a sendRedirect() method of the requestDispatcher object.
> How can I call this sendRedirect() - sounds like the solution to my problem!
>
> Thanks
>
>
> >From: "Nicolas De Loof" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: Newbie question....redirect
> >Date: Wed, 5 Nov 2003 14:22:47 +0100
> >
> >
> >contextRelative is used to define a forward that is relative to the
> >application context and not to the module context
> >(default).
> >
> >You cannot redirect to an URL outside your app using struts-config
> ><forward>. Use a requestDispatcher in your action and
> >call sendRedirect(), or create a new JSP with a <html:redirect
> >href="http://www.yahoo.com";> tag
> >
> >Nico.
> >
> >
> >----- Original Message -----
> >From: "Mathieu Grimault" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Wednesday, November 05, 2003 2:16 PM
> >Subject: Newbie question....redirect
> >
> >
> >Hi all !
> >
> >Sorry, about a such stupid question but I try to have my application
> >redirects to an external web site with some
> >parameters.
> >
> >Here is an exemple : http://payOnline/$cashAmout/$name
> >
> >For the moment i'm just try to redirect to an external website like yahoo
> >but the search path is always
> >"/context/http://www.yahoo.fr";. What's wrong ?
> >
> >Here is a snipet from struts-config.xml :
> >
> ><action path = "/Bonjour"
> >
> >type = "BonjourAction"
> >
> >name = "BonjourForm"
> >
> >scope = "request"
> >
> >input = "/index.jsp"
> >
> >validate = "true"
> >
> > >
> >
> >     <forward name="oui" path="http://www.yahoo.fr"; contextRelative="false"
> >redirect="true"/>
> >
> ></action>
> >
> >
> >
> >Environment : struts 1.1, tomcat 4.1.27, jdk 1.4.2_02
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _________________________________________________________________
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to