Originally posted by yuvraj kotegar:
should i remove out.close() line?
Yes, as you have already closed the writer associated with reponse, anything written afterwards is not displayed. By the way, it is better not to use filters for writing to the reponse. They are more suitable for implementing filtering logic like authentication etc.