Hi, I'm starting a j2ee development with struts helping in presentation layer.
Do you recommend using frames to display multiple sections of data within the application?
What are the (dis)advantages of using it?
Thanks in advance,
Nicolas Dobler
Santa Fe - Argentina
-
Do you recommend using frames with struts? (5 messages)
- Posted by: Nicolas Dobler
- Posted on: July 12 2004 14:15 EDT
Threaded Messages (5)
- Do you recommend using frames with struts? by Senthil Chinnaiyan on July 12 2004 17:01 EDT
- Do you recommend using frames with struts? by Thomas Nicolaisen on July 14 2004 07:25 EDT
- Do you recommend using frames with struts? by Rob Kischuk on July 14 2004 16:01 EDT
- How to code my Struts html:link tag ??? by s s on July 14 2004 17:55 EDT
- Do you recommend using frames with struts? by Nicolas Dobler on July 16 2004 07:52 EDT
-
Do you recommend using frames with struts?[ Go to top ]
- Posted by: Senthil Chinnaiyan
- Posted on: July 12 2004 17:01 EDT
- in response to Nicolas Dobler
There are some advantages, but one of the major disadvantages is, after you login to your system and if you try to refresh using the refresh button, you are gone, it will take you to your first screen or whatever you see on the URL bar. -
Do you recommend using frames with struts?[ Go to top ]
- Posted by: Thomas Nicolaisen
- Posted on: July 14 2004 07:25 EDT
- in response to Nicolas Dobler
We ended up with a frame-based main window in the prototype web-app for my current project (the left frame contained a heavy javascript based tree sructure we didn't want to re-load to often), though I ran into some trouble when trying to re-load the other frames.
Personally, I will look into using the Tiles framework when re-making the layout for the application. See http://www.theserverside.com/articles/article.tss?l=StrutsInAction and look for chapter 11. Perhaps Tiles includes the functionality we need from frames? -
Do you recommend using frames with struts?[ Go to top ]
- Posted by: Rob Kischuk
- Posted on: July 14 2004 16:01 EDT
- in response to Thomas Nicolaisen
I recommend AGAINST using frames with Struts. One issue is that you actually can't use frames effectively. Once you define the frame set, the browser then examines the links in the frame set and retrieves the frame files. You actually lose the session and any context parameters when the browser does this. As such, for any actual work you want to application to do, you either have to link to your action into the target frame, so that only that frame changes, and the action can forward directly to the JSP (otherwise, you lose all attributes you put in the request). If you want to change 2 frames at once, you basically have to use a javascript hack to make the loading of one frame cause the other to change as well.
I'd suggest taking a look at some of the CSS-based layouts here: http://glish.com/css/
In general, you'll find that almost any frame-like layout can be created in a cross-browser compatible format using CSS. I recommend using/modifying a pre-written layout rather than attempting to author this yourself. In such a layout, you can safely use Tiles and avoid many of the headaches that Struts+frames can cause. -
How to code my Struts html:link tag ???[ Go to top ]
- Posted by: s s
- Posted on: July 14 2004 17:55 EDT
- in response to Nicolas Dobler
hi,
this the html :
a href="Edit.do?username=<bean:write name="employe"
property="username" />">Edit</a>
i need it in Tag Lib
please,
thanks -
Do you recommend using frames with struts?[ Go to top ]
- Posted by: Nicolas Dobler
- Posted on: July 16 2004 07:52 EDT
- in response to Nicolas Dobler
And what about IFrames?