tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: calling another "local" servlet within a servlet?
Date Wed, 24 May 2000 19:07:57 GMT
"Kim, Greg" wrote:

> I'm trying to call another servletX from servletY.  Both servlets reside
> on the same machine.  I've tried the RequestDispatcher.forward(...), but
> this
> method requires that it is called before the reponse has been committed
> to the
> client (before reponse body output has been flushed).
> My servletY does BOTH the processing of a request and also generates a
> reponse
> (client gets a message - client is done), then servletY calls servletX
> to do some
> server side processing and it does not repond to any client.  It just
> needs the
> request.   Is there an API to accomplish what I want to do?

If servletX does not create any response, why is it a servlet?  Just make it
an ordinary class with a method that accepts an HttpServletRequest as an
argument, and call it in the usual way.

> thanks
> Greg

Craig McClanahan

View raw message