I tried passing my own HttpResponse some time back (when creating the
jsp service) and did not run into the problem shown below exactly, but
it does show an example of the problem I encountered.

Tomcat (and presumably other servlet engines) will cast the request to
their specific implementation as the class may contain helper methods
that are not part of the interface.

john mcnally

Jon Stevens wrote:
> 
> on 7/6/01 11:15 AM, "Rapha�l Luta" <[EMAIL PROTECTED]>
> wrote:
> 
> > process(HttpRequest req, HttpResponse rsp)
> > {
> >  HttpResponseImpl response = ((HttpRequestImpl)req).getResponse();
> >
> >  response.write(...).
> >  ...
> > }
> 
> So, then override the req object that is passed in so that it returns the
> right res object.
> 
> -jon
> 
> --
> If you come from a Perl or PHP background, JSP is a way to take
> your pain to new levels. --Anonymous
> <http://jakarta.apache.org/velocity/ymtd/ymtd.html>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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

Reply via email to