Possible to display external web page?

Hi everyone,

is it possible to display an external webpage by, for example, specifying the URL of the page? It would work a bit like frames.

I have a table with a list of reports, each of which links to a "report". all data is obtained from a database.

We need to be able to click a report and have it load it into some sort of panel or layout container based on the URL. I know how to do it using links in the table to open a new page. but i do not want the user to navigate away from the page or have a popup when selecting a link. i'd place the "report placeholder" in a layout panel with scroll css settings.

I wouldn't mind working with frames either.

could anyone suggest a nice mechanism to either load an external page in the same one being viewed or a solution using frames (is it even possible to use frames in JSC2 and JSF?)?

i don't need anyone to give me a whole code, just the idea behind developing something like this.

thank you all in this JSC2 community for all the help thus far.

- P

[1061 byte] By [bronze-starDukes] at [2007-11-26 12:10:45]
# 1

I did the following to display an external website:

StaticText st = new StaticText();

st.setText("<iframe id='urlFrame' frameborder='0' src='http://www.yahoo.fr' height='100%' width='100%'>test.....</iframe>");

st.setEscape(false);

However, I read that it is also possible by putting a markup component with tag attribute set to "iframe" but I did not have a chance to test it yet.

bronzestar at 2007-7-7 14:08:13 > top of Java-index,Archived Forums,Socket Programming...
# 2

Using the static text didn't work for me.

but i found the correct and easy way to do it.

In the view of JSP code, insert the following:

<ui:iframe id="frame1" url="http://www.java.com" height="300px" width="400px"/>

this works!

bronzestar at 2007-7-7 14:08:13 > top of Java-index,Archived Forums,Socket Programming...