The moose likes Servlets and the fly likes Using Servlets to imatate html frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Using Servlets to imatate html frames" Watch "Using Servlets to imatate html frames" New topic

Using Servlets to imatate html frames

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
I have a site that uses jsp & servlets. I want to ability to "imatate frames". On some of my jsp pages, or servlet generated html pages, will be links. When I click on those links, I would like for my header and footer to stay but have the link open up in the same window. Also, once that link opens up, I would like any links in that page, to just replace the current page, also keeping the header and footer from the original page. I was using a java program that takes in a URL and reads it contents and from there you can write the info to a file or whatever. The problem lies when clicking on a link from the newly formed page.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
Why do you say "imitate" frames? Why not use real frames, it is so much simpler. Just start with an all-HTML mockup of your desired frameset and substitute servlets.
author of:
I agree. Here's the link:
subject: Using Servlets to imatate html frames
It's not a secret anymore!