Search code examples
javaliferaywebgrabber

How to grab a whole body unless header and footer of another site page


I'm developing with Liferay portal. And now I'm facing a little problem:

I'm making site for some Company that has subsidiaries. Then, I must cut out some parts(precisely header and footer) of other site(sub. site) and put the body of page without'em in iframe of main site.

I was "googling", looking for something about Grabbers. but I've found just about how to grab with PHP or Perl. and here It doesn't seem to be exact what I need.


Solution

  • You can try the WebProxy portlet for this.

    As you'll have to modify the external content's body, you can't simply show it in an iframe, so this portlet might be what you need. It doesn't work with an iframe internally and you can replace some content on-the-fly.