You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Rishi N <re...@hotmail.com> on 2000/06/20 19:39:23 UTC
Capturing data from a servlet response
hi,
i have a peculiar problem, and i don't know if its possible to tackle it
with servlets. this is the problem:
I have a servlet which returns certain information, using the response
object's printWriter. Until now, i was directly returning it to the browser,
by setting content-type to "html/text" etc. Now i'd like to call this
servlet from another servlet, and have the info in the response object sent
back to the calling servlet, which can then take actions depending upon the
data received. is it possible to do this at all with servlets? i see that
there is a 'servletResponse.getOutputStream()" method, which can be used to
return binary data. can i somehow use this, for the above purpose? if
someone has done this, could you kindly provide some code?
thanks,
rishi
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com