If I call a servlet which is in a different server from a HTML page, How can I trap the response from that server(if it is down) and display a customized HTML page?
You would have to display the custom html error page from the server that is serving the Servlet. Alternately if you are also using Java and J2EE stuff on your server you could send a quick URLConnection request and if it doesn't come back then you could prompt an error page. Wushutwist
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.