Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If I call a servlet which is in a different serve........

Status
Not open for further replies.

sreeky

Programmer
Aug 8, 2001
77
US
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?

Thanks!!
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top