Open a web page from a java class file

Hi guys,I am having trouble open a web page from a class file. Please let me know if you have any idea. thank you.bestPro.
[143 byte] By [bestproa] at [2007-10-2 21:59:53]
# 1
what are you trying to do. post some codes and what exactly the trouble that you are having?
LRMKa at 2007-7-14 1:16:06 > top of Java-index,Core,Core APIs...
# 2

Hi,

I have an array of URLs which i want to show on a web page(in JSP or in servlet). Now i am on applet. From a JApplet, i want to show on a page when you press a specific button. When i press a button, it's coming to that coding area. No problem with the button functionality. Please let me know if you have an idea. Thank you.

bestPro

bestproa at 2007-7-14 1:16:06 > top of Java-index,Core,Core APIs...
# 3

I am not sure but try something like

try {

JSObject window;

window = JSObject.getWindow(this);

URL url = new URL(this.getCodeBase(), "mydomain/mypage.jsp");

window.eval("window.open(" + url +")");

}

catch (Exception e) {

e.printStackTrace();

}

kilyasa at 2007-7-14 1:16:06 > top of Java-index,Core,Core APIs...
# 4

Are the code formatting tags working?

try {

JSObject window;

window = JSObject.getWindow(this);

URL url = new URL(this.getCodeBase(), "mydomain/mypage.jsp");

window.eval("window.open(" + url +")");

}

catch (Exception e) {

e.printStackTrace();

}

kilyasa at 2007-7-14 1:16:06 > top of Java-index,Core,Core APIs...
# 5
evidently they are not
kilyasa at 2007-7-14 1:16:06 > top of Java-index,Core,Core APIs...