Shahed Ali wrote:

> Hi,
>
> Is there some way in which I can remove values in
> the request object before forwarding from my servlet
> to a jsp page ?
>

Use request.removeAttribute().

>
> Or if not, can I create a new blank request object and
> use it in the forward method call ?
>
> The servlet spec defines the request object as an interface.
> So I guess its upto the implementation to allow / disallow
> creation of a new request object ?
>

In servlet 2.2, there is a restriction that the request and response
objects you pass to the RequestDispatcher.include() or
RequestDispatcher.forward() methods *must* be the original request and
response objects that your servlet received.  So, you cannot just
re-implement them.

In servlet 2.3, you have the right to pass custom request and response
objects, but they must be "wrappers" around the original request and
response.

>
> Thanks
> Shahed.
>

Craig McClanahan



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

Reply via email to