One of my servlets is getting connected to a heavily loaded system and it is very frequest to get the request timeouts. This is fine as per requirements but we need to set the timeout period programatically (read from xml or properties file). Also in case of a time out (after timeout period) we need to show a page with message using JSP/Servlet "Sorry Server Is Not Available At The Moment."
Is there any way I can set the timeout value between request and response? Also how do I trap the timeout? This needs to be done programatically or using non-vendor dependent feature because our app needs to work on all servlet containers.