Hi,
I have written two methods. Name it as A(),B().
In A() Method i am calling getWriter()
In B() Method I am calling getOutputStream().
But i got the
IllegalStateException saying that,
Cannot call getOutputStream() after getWriter().
Both are required for me.
I should not change the A() Method which is written by somebody and all are using the same i eman A().
But i need getOutputStream() in My method i mean B().
Please tell me how to avoid this problem.
Thanks in Advance