Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anything similar to XMLHTTP in JAVA?

Status
Not open for further replies.

Sakheb

Programmer
May 22, 2003
11
IN
I have a J2EE app running already, but now I need to download a HTML page from the server side. I know the XMLHTTP object can download a page, but it runs on the client side...which is no good for me. Is there a way in JAVA (servlet) I can access a HTML file and store it in a variable somewhere?

thanks!
 
You can download a web resource using the java.net.HttpURLConnection class. This question has been asked loads of times before here - so try using the search function if you need examples.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top