File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes stuts with frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "stuts with frames" Watch "stuts with frames" New topic

stuts with frames

Satheesh Kumar G

Joined: Feb 08, 2003
Posts: 21
can any body explain how to use struts with html frames. I am using URL rewriting for session management and my session is getting lost if i use frames.
thanks in advance
Best Regards,
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
if possible you should avoid frames. Try instead tiles. Quite the same effect.
It uses jsp:includes to generate pages. This can be done based on config files,
or directly on the pages.
It allows you to generate footer, header and menu elements which are then combined.
Satheesh Kumar G

Joined: Feb 08, 2003
Posts: 21
Thanks for your reply. Our client requirement is that we should not change/reload header and footer, so we have to go for frames..
Thanks and Regards,
Darryl A. J. Staflund
Ranch Hand

Joined: Oct 06, 2002
Posts: 303
Hi there,
How are you handling sessions that they break in your Struts-based frame-based environment? When I have developed frame-based applications with Struts in the past I let Struts worry about session management and concentrate on ensuring that links are directed to the proper frame or frameset. I've never encountered problems with session management in these situations.
Dajin Sulman

Joined: Apr 28, 2003
Posts: 11
I am writing on an application right now using frames as well. All I do is making sure to access the jsp's through the controller like this:

and then within the pages I load the other frames with a javascript onload() function.
The Objects are stored with session.setAttribute("blabla", anyArray). Encountered no problems so far...
HTH, Dajin
Satheesh Kumar G

Joined: Feb 08, 2003
Posts: 21
hi all,
Thanks for your help, yes my problem is solved by html rewrite tag to encode frame src..
I agree. Here's the link:
subject: stuts with frames
It's not a secret anymore!