JavaWorld
addict
Reged: 06/20/03
Posts: 482
|
|
Create intelligent Web spiders
|
Anonymous
Unregistered
|
|
I can think of an improvment by checking the stream content type instead of the file extention. It should be "text/html" and then you can use HttpURLConnection or HttpsURLConnection for getting the html content.
|
Anonymous
Unregistered
|
|
Thanks for the great code! However, I miss the separation between Model, View and Controller. If somebody wants to reuse this code in a slightly different context, he will have to do lots of copy paste!
|
Anonymous
Unregistered
|
|
Nice article. Code is interesting to play with. Thank you.
|
Mark Pendergast
Unregistered
|
|
Thanks. That's a great suggestion. Takes some of the guess work out.
|
Anonymous
Unregistered
|
|
Hi
Problem is that what if you just needed .html files and not say jsp files. Both return text/html as the contenttype
Nick
|