I've an applet and I need to open 2 jsp's in the same page (the same browser ) ( it should be a .html page with two frames,I think ). How can I do it ? Here's the code to open one page from an applet : Thank you.
import java.net.*; ... URL u = new URL("http://my_server/page1.jsp"); AppletContext ac = getAppletContext(); ac.showDocument(u,"_blank");
If the frames are in the same page as the applet, all you have to do is use the name of each frame in the showDocument call instead of _blank. If you want a new window, why not have a plain HTML page that defines the frameset using the JSP pages. Bill
Joined: May 31, 2001
"_blank" it opens a new browser and that's what I want . Can you give me some example ? Thanx.
Author and all-around good cowpoke
Joined: Mar 22, 2000
If you mean an example of a frameset made of two jsp pages - something like this: <frameset rows="40%,60%" > <framd src="http://someserver/somepath/page1.jsp" > <frame src="http://someserver/somepath/page2.jsp" > </frameset> You need a good HTML reference to get the details. I like "The Hip Pocket Guide to HTML 4" IDG books Bill
subject: opening 2 JSP in the same browser (from an applet )