PrintWriter out = response.getWriter();
But as the string is very big my code is not working. My browser just hangs.
Is there any way I can fix this.
Also is it possible to stream the output? i.e instead of sending entire string, can I send small part of string at a time. So that my browser will not hang.
I don't want to handle streaming manually I am just looking for an IO class which will do the streaming automatically.