This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with ServletOutputStream in Filter  RSS feed

 
vijay dadhwal
Ranch Hand
Posts: 47
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I have written a Filter, which will add a Horizontal line above and below the HTMl Page, it is mapped with.
When i Use PrintWriter getWriter() it works fine and i can see in browser the top & bottom line with HTML contents.
But when i use ServletOutPutStream getOutputStream() :-
(1) it displays truncated HTML.
(2) Bottom Lines donot appear.

What do be the cause ?

Please share with me.

Regards
Vijay
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!