Re: How to do with response.sendError() after the ServletOutputStream is established?

2009-06-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 流水音, On 6/1/2009 1:55 AM, 流水音 wrote: > when the maxcount() returns 15, the exception is thrown out before the > first buffer is flushed, then client can get the response code of: 605 > but when the maxcount() returns 9, the exception is thrown out

How to do with response.sendError() after the ServletOutputStream is established?

2009-05-31 Thread 流水音
HI,ALL: Servlet code(deployed on Tomcat server): private void execute(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { try { int count = 0; while(count< 100){ out.write(97);

Calling response.sendError(404) from JSP

2006-09-17 Thread Artem Kuroptev
Hi All, There is an issue with non-latin characters in the custom error page. Calling "response.sendError(404);" from JSP context causes Tomcat to mangle all non-latin characters in 404.jsp. I have described the issue and how to recreate it: http://forum.java.sun.com/thread.jspa?threa

Re: response.sendError

2005-11-04 Thread PHIL CAVAZOS
created a servlet which has JDBC calls in it. As part of error catching, I > have a response.sendError called if there is no data returned from a table > call. I input to the sendError method the value of 700 (my custom error > number) and a test message. I have a custome error page cre

Re: response.sendError

2005-11-04 Thread Mark Thomas
of error catching, I have a response.sendError called if there is no data returned from a table call. I input to the sendError method the value of 700 (my custom error number) and a test message. I have a custome error page created to output a customized error message for this 700 error code

response.sendError

2005-11-04 Thread PHIL CAVAZOS
Anyone run across this before? I created a servlet which has JDBC calls in it. As part of error catching, I have a response.sendError called if there is no data returned from a table call. I input to the sendError method the value of 700 (my custom error number) and a test message. I have a