Viewed 1k times 0 I can access the data from browser using "localhost". IllegalStateException: The output stream has already been closed. Method; import java. Arrays; import java.
|Published (Last):||15 January 2015|
|PDF File Size:||15.46 Mb|
|ePub File Size:||16.22 Mb|
|Price:||Free* [*Free Regsitration Required]|
Marn You have issue with response. The below code in written my action class. That sort of logic belongs in the controller which should not java. Ajit 6 HttpServletResponse ; import org.
ActionMapping ; import java. Looking at your stack trace, you make a request to a struts action. Similar Threads The way you posted it makes it really hard to follow.
ActionForm ; import org. ActionForward ; import org. So, you are losing a bundle full of experts comments on your post. ARIAL10 ; datafont1. Yes you are right. What ELSE does that action do? Can you edit your code to add Code Tags I changed the return type of the method to void and issue resolved. Products Solutions Services Resources. Also at some cases the release of the objects used in the jsp will call response. Hi stefan, Please see my jsp code in 1st post.
Put the outputstream in a variable above the betoutputstream block and replace all the instances of response. I gave you the link showing how to in my previous post. The answer should be in your struts config somewhere. OP is already performing both these calls.
It says getOutputStream has already been called for this response so what do you do? I searched for a while, and the solution that I found worked for me. PrintWriter ; getoutputsttream java. I was trying to figure out why I am getting this error. ResultSet egtoutputstream import net.
But the above java file is generated by the container automatically. I am pretty new to this. TOP Related Posts.
les meilleures pratiques de réponse.getOutputStream