Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Do i need to close PrintWriter  RSS feed

 
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
In my servlet I use PrintWriter to split out some text to the client.
the code is



after this should I have to explicity close PrintWriter object?

If I close i see in my tomcat log throws java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END

Please advice.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!