How can i send respond incrementally in a Servlet

2002-09-10 Thread Sam Cheung
buffer size smaller. It will force flushing more often. response.setBufferSize(int size) or <%@ page buffer="8kb" %> Sam Cheung wrote: > Hi, > > I would like to send response back to user during the > execution of the doGet() method, not upon completion > of the

Re: How can I send respond incrementally in a Servlet

2002-09-10 Thread Sam Cheung
e table is completed (until it received ). Regards, Rosdi. - Original Message - From: "Sam Cheung" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 10, 2002 11:46 PM Subject: How can I send respond incrementally in a Servlet > Hi, &g

How can I send respond incrementally in a Servlet

2002-09-10 Thread Sam Cheung
Hi, I would like to send response back to user during the execution of the doGet() method, not upon completion of the excution of the doGet() method. I try calling the flushBuffer() of the response and the flush() of the print writer of the response but it does not work, could someone please te

Using a different Xerces library in Tomcat 4.1 on jdk1.4

2002-09-06 Thread Sam Cheung
Hi, The Web Application I am running needs an old version of Xerces. I put that xerce.jar file in WEB-INF/lib, but I still get java.lang.NoClassDefFoundError: org/apache/xerces/framework/XMLParser? Could you please tell me how to fix that? type Exception report message description The serve

HTTP Keep Alive in Tomcat

2002-09-04 Thread Sam Cheung
Hi, Does Tomcat use HTTP keey alive by default? In other words, Tomcat does not close the socket connection with the client AFTER the servlet finishes the doGet() or doPut() call? If yes, is this a Tomcat specified implementation? Or it is defined in the Servlet spec? Also, is it possible to con

Using Tomcat as a server application framework

2002-08-30 Thread Sam Cheung
Hi, I am going to a server application which listens on a known port, take a client's request and then response it , I would like to know if it is a good idea to use Tomcat as the server framework? If the protocol between client and server is HTTP on top of TCP, then my appication can be just a

Config servlet parameters in Tomcat at run time

2002-08-30 Thread Sam Cheung
Hi, Is it possible to change parameters of a servlet running in Tomcat at runtime? For example, I have a static variable counter in my servlet. In the doGet() method of servlet, I increment the counter. If counter is less than MAX_COUNT, I return "ACCEPT", otherwise, I return "REJECT". Is ther