struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Langøren, Knut Harald" <Knut.Lango...@edbasa.no>
Subject RE: Forwarding with parameters!
Date Wed, 10 Oct 2001 12:06:10 GMT
Hi.

It works just fine.

Thanks.

> -----Original Message-----
> From: martin.cooper@tumbleweed.com 
> [mailto:martin.cooper@tumbleweed.com]
> Sent: 10. oktober 2001 05:54
> To: struts-user@jakarta.apache.org
> Subject: Re: Forwarding with parameters!
> 
> 
> Use a request attribute:
> 
> request.setAttribute("myException", theException);
> 
> --
> Martin Cooper
> 
> 
> ----- Original Message -----
> From: <Langøren>; "Knut Harald" <Knut.Langoren@edbasa.no>
> To: "Struts-User (E-mail)" <struts-user@jakarta.apache.org>
> Sent: Tuesday, October 09, 2001 4:05 AM
> Subject: Forwarding with parameters!
> 
> 
> > Hi all.
> >
> > I'm not quite familiar with all the tricks in struts yet, 
> so I need som
> > tips.
> >
> > I have one page wich I wish several other pages to be 
> forwarded to, for
> > instance a special page for special error messages. And I'm 
> using the
> > "forward" attribute in the struts-xml. The forwarding is 
> working just
> fine,
> > but how do I send a parameter from the page I'm forwarding form. For
> > instance if I get an exception in one page, and then want 
> to forward the
> > control to a common exception handling page, and then write 
> the exception
> > message. How do i transmit this parameter across ?
> >
> > Thanks
> > KHL
> 
> 

Mime
View raw message