File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Portals and Portlets and the fly likes Including page from another website Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Including page from another website" Watch "Including page from another website" New topic

Including page from another website

Vinodhini Mohanbabu

Joined: Mar 12, 2011
Posts: 1
hi everyone,

I am quite new to portlets.I have a JSP with me which i need to include in my portlet.But my JSP is from another website.It is hosted on the public domain.How do i actually do it.Any help would be greatly appreciated.TIA

David O'Meara

Joined: Mar 06, 2001
Posts: 13459

You haven't said anything about the target environment - Portlet 1.0, 2.0 or vendor specific - or whether their are any restrictions on the local or remote servers.

Writing a portlet that converted a local request into a remote request and relayed the response shouldn't be hard.
Liferay also has a portlet which supplies a simple iFrame wrapper on a remote page and the portlet source may be available in the community edition. See for details.
I agree. Here's the link:
subject: Including page from another website