File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Use Servlet to read a webpage.
Joined: Jun 27, 2002
Jun 27, 2002 09:33:00
, how can I read a webpage via internet into a
object. The webpage could be HTML or
Joined: Jun 27, 2001
Jun 27, 2002 12:29:00
You'll be using a
object, then use a
to retrieve the output of the page (if it's a server side script). You could then store it in a String or a File structure.
Hope that helps!
Author and all-around good cowpoke
Joined: Mar 22, 2000
Jun 27, 2002 17:05:00
Note that if you use a url starting "http://" you automatically get a
so look in those docs for the methods that let you set request headers etc.
I agree. Here's the link:
subject: Use Servlet to read a webpage.
init and service in same thread?
Calling windows event "Save As" from JSP
send the message to websphere MQ through servlet.
Servlet to servlet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014