Hi,
I am new to the
JSP's and this problem is troubling me a lot.
I have a JSP page. from this page, I access a
Java class(this is basically a part of custom tag lib) in which I use JspWriter to print the data and from this java class, I call a function of another java class. Here I am supposed to send data to the browser as an extension to the taglib class data.
The flow is something like this:
1. I have some data in the JSP page.
2. I use a tag from custom tags, so i reach a java class, manipulate and send some data through JspWriter.
3. From this tag librabry class, i call a function of another java class sending request and response objects as parameters. in this class, i have to push some more data.(I get the problem here)
4. Control is back to taglib class. add few more JspWriter.print statements.
5. Control is back to JSP. I mean I get the JSP page refreshed back with all this data.
while thru this flow, when I try to use getOutputStream() of response object in the function call, I am getting an error which says this outputstream has already been called.
so how do I send the data to the outputstream from this class? I don't understand how to do this. Please help me.