Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7825567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:03:38+00:00 2026-06-02T09:03:38+00:00

I’m working on an old JSP webapp, that has basic 3 presentation areas: top

  • 0

I’m working on an old JSP webapp, that has basic 3 presentation areas:

top menu / side menu / content

Initially, this layout used IFRAMES. Other people has changed before the top menu and side menu from Iframe to DIV approach, but not the content IFRAME.

Every page of the system is an individual JSP page, with many Includes of other JSPs (access control, session time, etc), JS, CSS, etc.

When I try to use DIV to load content, many problems happens because this option insert the content into a base code (main page), that has your own CSS, JS, included JSPs.

a4j:include, ui:include (templates with facelets), and c:import are options that like DIV, mix the codes.

I want an option that like IFRAME, insert an independent and isolated page in an area of a main page. Without this, many hardwork (and tedious) would be necessary to adapt every single file content with the main page.

Unfortunately my boss don’t want to remains on IFRAME :)….

Update:
BalusC, it’s a honor to me that you had answered my question. I’m living my first experience with work as a developer (always was a personal dream, since I’m child when I have first contacts with Basic in a TK90X plugged into tv) , started in this job 2 months ago, and some times I can see your comments around the web helping many people.

I’m very starter with JSF / JSP, but the question is about how to drop the IFRAME and use another solution to load content, with minimal project impact, because the webapp has more than 1k JSP files, someones already using JSF tags (the project is slowly been updated to use JSF). We are using JAVA 6, Tomcat 6 and JSF 1.2.

Some problems with use of a4j:include, for example, is that the included pages action as a part of the main page, and:

1- every page need to use a f:subview tag instead f:view. All of them that already migrated to JSF are using f:view (very manual changes were necessary).

2- with include, the URL path reference is the path of the main page, not the path of the included file (with IFRAME this problem don’t exists). Every page of project was made to work with frames, using includes of JS, CSS, JSPs, many o them using relative path like: “../../javascript/jsfile.js”.

As you can see, with includes or imports (a4j, ui), many hardwork will be necessary (more than 1k file changes. An option that acts like Iframe, including an independent page at the content area (the webapp was made for that), will help me a lot. I know that this not is the correct way, but the webapp is very large to do a drastic change quickly with templates or other solutions.

Forgive me for the bad English and possible basic questions that I don’t know.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T09:03:40+00:00Added an answer on June 2, 2026 at 9:03 am

    I solved my problem using the HTML tag ‘object’. Like ‘iframe’, with this tag “the embedded document remains independent of the main document.” (w3c.org)

    And this tag is in HTML Strict.

    Link to w3c page about ‘object’:
    http://www.w3.org/TR/html401/struct/objects.html

    Thanks anyway.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
In my XML file chapters tag has more chapter tag.i need to display chapters

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.