wood burning stoves 2.0*
The moose likes JSP and the fly likes Keep Alive and Dynmic Pages (JSP or Servlets) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Keep Alive and Dynmic Pages (JSP or Servlets)" Watch "Keep Alive and Dynmic Pages (JSP or Servlets)" New topic
Author

Keep Alive and Dynmic Pages (JSP or Servlets)

Deena Yousef
Greenhorn

Joined: Dec 30, 2002
Posts: 1
During my tests on JRun I encountered the following interesting scenario, when I enabled the Keep Alive on the Server and Browser, and tried to open the main page on a copy of my app hosted on Jrun, the browser keep asking for the page, as if the download never stops, till the browser timeout after a while.

I was reading about such cases, and found the following:

- Keep alive will generally be used by JWS only if the following conditions are true:
- The browser asked for it with a "Connection: Keep-alive" header
- The servlet set the "Content-length" header prior to flushing any output
- The servlet did not set the "Connection: close" header

can anyone give me any examlples on how to use apply these points?
Please this is important, and thanks for anyone that can help..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Keep Alive and Dynmic Pages (JSP or Servlets)