i use
response.getWriter().write("hello world");
from jsp to pass the string "hello world!" to ajax.
after that jsp will auto response write the whole page content to ajax which would be quite redundant. I googled a lot, some suggest to run
response.end()
or
response.close()
to stop write content to the response.
but i cannot call response.end or close function in my jsp.
I am using netbeans ide 6.5.1
and I cannot find the function in the library of [http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServletResponse.html]