Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

where is the response.end in javax.servlet.http.HttpServletResponse?

843840Apr 17 2009 — edited Apr 19 2009
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]
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 17 2009
Added on Apr 17 2009
5 comments
746 views