Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getOutputStream in JSP  RSS feed

 
Bennet Xavier
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we use getOutputStream in JSP.

please check below link,

http://www.coderanch.com/t/286297/JSP/java/OutputStream-already-obtained

but, i could not do that...

please tell me how to achieve this.

Thanks,
Bennet.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no need to.

First of all, Java code in a JSP is a practice that has been discredited for almost 10 years now. There should be no Java code in modern JSP pages.

For legacy pages, the implicit variable out give access to the JSP writer.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!