tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Tomcat 4.1.24 Servlet connection:close
Date Tue, 15 Apr 2003 12:59:15 GMT


>public void doPost(HttpServletRequest request, HttpServletResponse
>throws ServletException, IOException
>  // do normal servlet processing to get a result
>  response.setHeader("Connection","close");
>  PrintWriter out = response.getWriter();
>  out.print(result.getResultString());
>  out.flush();

Just out of curiosity, what makes you think this should work?

Save yourself time and redirect requests to a proper error page by using
response.sendError or your own request dispatcher forward call.

Yoav Shapira
Millennium ChemInformatics

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message