struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Billy Ng" <evebi...@hotmail.com>
Subject Re: redirect
Date Fri, 26 Jul 2002 19:49:18 GMT
I ddi try this <forward name="action2" path="/action2.do" redirect="true" />
in the struts-config.xml, it will hit the Action2's perform().  However, how
can I put the query string in the path?

Thanks in advance!

Billy Ng

----- Original Message -----
From: "Billy Ng" <evebill8@hotmail.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Cc: <emr@methodpark.de>
Sent: Friday, July 26, 2002 10:40 AM
Subject: Re: redirect


> Sorry, I am a new Struts user and slow.  I need to hit the Action2's
> perform() from Action1's perform() to have further business logic to do.
> Also, I will have query string in the url.  If I only put the
> "redirect='true'" in the ?<forward> tag, it won't do the work.  Would you
> please tell me how to do it, thanks!
>
> Billy Ng
>
> ----- Original Message -----
> From: "Erich Meier" <emr@methodpark.de>
> To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> Sent: Friday, July 26, 2002 3:01 AM
> Subject: Re: redirect
>
>
> > On Fri, Jul 26, 2002 at 11:07:14AM +0800, Tuck Wai wrote:
> > > Hi,
> > >       ActionForward newAF=new ActionForward(<the url you will to
> > > redirect>);//for example 'yourAction.do?action=first'
> > >       newAF.setRedirect(true);
> > >       return newAF
> >
> > This won't work with the upcoming struts 1.1 release. You should better
> use
> > the "redirect='true'" attribute of the action statement in the
> > struts-config.xml.
> >
> > Erich
> >
> > > ----- Original Message -----
> > > From: "Billy Ng" <evebill8@hotmail.com>
> > > To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> > > Sent: Friday, July 26, 2002 10:10 AM
> > > Subject: redirect
> > >
> > >
> > > This question may have asked so many time.  Would anybody tell me how
to
> do
> > > redirect.  If I have 2 Action objects, The Action1 finsihes the
business
> > > logic and want to rediect to Action2 to display the jsp page.  How can
I
> do
> > > it?
> > >
> > > Billy Ng
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> > >
> >
> > --
> > Dr. Erich Meier, Software Process Improvement
> > method park Software AG, Wetterkreuz 19a, 91058 Erlangen, Germany
> > Tel. +49-9131-97206-316  mailto:Erich.Meier@methodpark.de
> > Fax. +49-9131-97206-200  http://www.methodpark.de/
> >
> > --
> > 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