chipdouglas
04-06-2003, 11:55 AM
Hi, I'm writing my first web browser, using java. It's at a useable stage, but I'm trying to figure out how to deal with someone typing in a non-existant URL by mistake.
So far, I'm using a try/catch with MalformedURLException, but this causes the program to quit. Obviously it would be better to display an appropriate message and let the user continue.
Is there a way to test the URL connection link beforehand?
So far, I'm using a try/catch with MalformedURLException, but this causes the program to quit. Obviously it would be better to display an appropriate message and let the user continue.
Is there a way to test the URL connection link beforehand?