aspose file tools*
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "stuts with frames" Watch "stuts with frames" New topic
Author

stuts with frames

Satheesh Kumar G
Greenhorn

Joined: Feb 08, 2003
Posts: 21
hi,
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,
Satheesh
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi,
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.
Olli
Satheesh Kumar G
Greenhorn

Joined: Feb 08, 2003
Posts: 21
hi,
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,
SAtheesh
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.
Darryl
Dajin Sulman
Greenhorn

Joined: Apr 28, 2003
Posts: 11
Hey!
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
Greenhorn

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..
REgards,
Satheesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: stuts with frames