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
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();
}
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();
}