Tjerk Wolterink wrote:
> wrote:
> > I have one.jsp dealing with some parameters.
> >
> > I'd like to modify maybe one of them, and pass the request to another
> > jsp (ie: two.jsp) upon user clicking on a link.
> >
> > Is there any automatism to do that?
>
> I think you can use the following method:
>
> HttpSerlvetRequest req;
> req.getRequestDispatcher().forward("yourjsp.jsp");
>
> or
>
> req.getRequestDispatcher().include("yourjsp.jsp");
>
>
> Doesnt that work?
Yes, but isn't it just like jsp:forward? I don't want to transfer
current request to another jsp; I'd like to serve my request and
prepare a link (ie: an href) that will receive a request just like the
one I served, maybe with some modifications.
Is that more clearly defined?
Thanks