my dog learned polymorphism
The moose likes JSP and the fly likes External WebpAge rendering Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "External WebpAge rendering" Watch "External WebpAge rendering" New topic

External WebpAge rendering

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
I would like to display an external webpage via a jsp. The problem is that I am behind a firewall and dont know how to do it.
URL url = new URL("");
URLConnection conn = url.openConnection();
conn.setRequestProperty("Content-Type", "application/octet-stream");
InputStream inp = conn.getInputStream();

char thisChar;

BufferedInputStream theHTML = new BufferedInputStream(inp);
DataInputStream dis = new DataInputStream(theHTML);

String theFile=null;

while ( (theFile=dis.readLine())!=null)
catch (IOException E)
I agree. Here's the link:
subject: External WebpAge rendering
It's not a secret anymore!