tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Park <dp...@arsdigita.com>
Subject Re: request parameters
Date Tue, 30 May 2000 16:22:34 GMT
Jorge Aliss wrote:
> My servlet has to forward a post request to another URL, but before doing
> that it should add parameter values to the request.
> Is there a way to do that?

You can add attributes to your ServletRequest object with setAttribute
and then get a RequestDispatcher from your ServletContext, calling the
forward method will post your request to the new new URL. I am doing
this locally, I don't know whether it works posting to URLs on other
servers.

Manning's new (April) book Web Development with JavaServer Pages
provides some examples on doing this. 

-David Park

Mime
View raw message