This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Keep Alive and Dynmic Pages (JSP or Servlets)
 
Similar Threads
keep connection
How to Close the Response Object at ServerSide?
how to find out the page the user was previously at.
Why null is return?
redirecting servlet fails with embedded jsessionId