I am currently using Jsoup to parse HTML document and I use the following command to get the document first
Document doc = Jsoup.connect(url).post();
if URL is not a real or existing URL, then error message will appear. So, is there any way to check that and print error message
thanks,
Zhua
It will throw an exception?
Probablly so. Why not put it in a try, and check for that kind of exception?
sth like
it seems easy to do so.