• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with ServletOutputStream in Filter

 
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!