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
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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.
Java Resources at
It is sorta covered in the
JavaRanch Style Guide
subject: Use Servlet to read a webpage.
Calling windows event "Save As" from JSP
Servlet to servlet
send the message to websphere MQ through servlet.
init and service in same thread?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014