404 status check for external website

Hi,

In my application, i want to check for some external website.

e.g. i have my own application and in that there is a link of some different website i.e. www.yahoo.com. I click that link and in case of 404 error, we should get some customized error page instead of "The page cannot be displayed"

Please let me know if there are any other information you want

~Aman

[397 byte] By [aman_mahajana] at [2007-11-27 11:39:40]
# 1

did you try simply to create the URL:URL yahoo = new URL("http://www.yahoo.com/");

and see if this throws an exception or not?

If that isn't enough you could try the create a connection:java.net.URLConnection yc = yahoo.openConnection();

greetz

StijnGa at 2007-7-29 17:27:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...