This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

opening 2 JSP in the same browser (from an applet )  RSS feed

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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");
 
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Wally Schnok
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"_blank" it opens a new browser and that's what I want .
Can you give me some example ?
Thanx.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!