In Conf folder of Tomcat installation directory, there is one folder called catlina. In this folder there are xml files corresponding to each application deployed on the server. In case your application is named 'test', there will be one file called test.xml. This is the application context file. Open this and you should find one element called "Consume Output", set this to false.
I am referring to the folder structure in Tomcat 5.X. In case you are working on some other version, get back with the version. I will be delighted to tell you the place of Application context folder.