Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stuts with frames

 
Satheesh Kumar G
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 303
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic