Web tier: servlets, JSP, Web frameworks: Include External URL content

  1. Include External URL content (2 messages)

      I want to include the content of a URL in my servlet. for example: i want to get the content of http://www.yahoo.com and return the HTML of yahoo.com from my servlet while the browser is unware of this.

    Thanks in advance

    Threaded Messages (2)

  2. Include External URL content[ Go to top ]

    There are lots of ways to do this. This most straightforward is to use a java.net.URL and java.net.URLConnection to download the remote page into memory, then insert it into the OutputStream of your servlet using out.print() statements.
  3. Include External URL content[ Go to top ]

    See for example Request or HTTP taglib from Coldtags suite: