Very interesting...
I would like to suggest a different approach using a Model View Controller (MVC)
pattern. I am sure you can find many MVC posts on this site.
Here is a sample design for your problem:
1.) You probably have an html page that links to your frame page. I would change this page to call a controller servlet.
2.) The controller servlet would do the following:
- Retrieve all of the data required to be displayed in the frames (you are currently doing this in your JSPs).
- Store the data in some
java beans (you need to define these).
- Store the java beans in the HTTPSession Object
- Use RequestDispatcher to forward the request to your frame JSP page (you need to change your frame html page to a frame JSP page).
3.) Your frame JSP page should be set up to reference JSP pages similiar to the format in my first post. This only applies to the html pages that require data.
4.) In your JSP pages you would display the java bean data that was created in the controller servlet.
I think using an MVC approach will give you much better results and a flexible solution.
I hope this helps,
Joe