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 7758131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:16:38+00:00 2026-06-01T13:16:38+00:00

In my Java EE application page, I have header.jsp, a side menu.jsp, a body.jsp

  • 0

In my Java EE application page, I have header.jsp, a side menu.jsp, a body.jsp and footer.jsp. The side menu contains the jQuery dynatree plugin. When a user clicks a menu item from the tree, the body should be changed with the appropriate page (also a .jsp). I am using tiles framework, where I am importing all js code in layout.jsp page. I want to achieve an effect replicating a frameset, but without actually using a frameset. I think framesets are difficult to be managed and take time to load.

Can anyone suggest how I can approach this problem? If I use AJAX to fetch each page when dynatree node is activated, then I have to manually update the page. If I use an IFRAME in body.jsp, then I have to reimport all plugin js code as the frame will not be able to access js functionality on the main page.

I want efficient html page management.

  • 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-01T13:16:40+00:00Added an answer on June 1, 2026 at 1:16 pm

    Since you are using jQuery, you should be able to use AJAX in combination with the live method of applying events (see the docs or here). This method is called “event delegation”, and even though jQuery will do it for you like magic, you should understand what is happening. Depending on what version of jQuery you are using, you might use delegate instead of live – essentially the same thing.

    Framesets are actually deprecated in HTML5 — you should avoid using them because soon they will not be supported at all in newer user agents. See http://www.useit.com/alertbox/9612.html for a lengthy discussion that should hopefully dissuade you from considering that approach.

    The IFRAME approach is a hack. You might be able to make it work, but you’re hammering a square peg into a round hole.

    Bottom line, if you don’t want to directly deep link to inner pages, AJAX is the best and preferred solution. In combination with event delegation, it really is superior to any older or hacky solution. And, be sure to use the idea of “progressive enhancement” — if someone clicks those links and has javascript turned off, the content should still load. That means you start with regular direct links, then add the fancy stuff on to it for those users that have javascript enabled. Otherwise, you close a percentage of users off from anything past your home page.

    When you use AJAX for your navigation, you still need to plan for a user that doesn’t understand the difference between when they click a link on your site or any other site. They’ll use the browser’s “back” button and end up back at Google instead of on the last page! That’s because their navigation through your site does not look like unique pages to their browser. There are tools in newer browsers to deal with this, but the details are a little beyond the scope of this answer. Check out this article on MDN for more info on manipulating the browser history.

    Documentation

    • jQuery’s live – http://api.jquery.com/live/
    • jQuery’s delegate – http://api.jquery.com/delegate/
    • David Walsh on event delegation – http://davidwalsh.name/event-delegate
    • Jakob Nielsen on Framesets – http://www.useit.com/alertbox/9612.html
    • MDN on Browser History Modification – https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history
    • jQuery for Designers blog with a sample use-case for delegate – http://jqueryfordesigners.com/simple-use-of-event-delegation/
    • Wikipedia article about progressive enhancement – http://en.wikipedia.org/wiki/Progressive_enhancement
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have a page in my java/jsp based web application which shows list
I have a simple java application and want to embed it into a jsp
I work on a UI java application composed from: top header left menu header
I have been trying to retrieve unicode user input in my Java application for
I have a java-application using JDBC for database interaction. I want to do a
I tried decompiling a Java application to which I do not have the source
I'm creating a Java application where the user can search through a list of
I have a page in JSP that list some file that could be downloaded
I have developed a java 1.4 web application.Application is deployed on jboss(tomcat). suppose my
I have a Java application that I need to integrate our existing PHP website

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.