Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

Tiles vs Frames

Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
What are the benefits of using struts tiles over HTML frames ? as per my understanding goes, tiles eventually boils down to table having different columns loading different pages at runtime. This means that when the page is reloaded, all parts are refreshed. ie. suppose u have a menu on left side and header on the top that need not change every time page is refreshed. however, with tiles, the static part is always reloaded unnecessarily.
Where as with frames, ur static part can remain same and u can specify which frame to refresh. So the main frame having dynamic part can be refreshed.
So what are the benefits of tiles over frames. I tried searching web. I didn't get any specific article.
Please, clear my concepts about struts tiles, if the above description is wrong.
Thanks and regards,
Posts: 11962
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Frames Are Evil
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are many problems with frames, but the mains ones are as follows:
1) Browsers of different types and versions handle frames differently. From rendering to look and feel, frames behave inconsistently between browsers.
Then there are also differences in the way that each browser's JavaScript interprets frames. It would be difficult to truly have a cross-browser application with frames without have browser-specific code attached.
2) There is the issue of sharing data between requests and the session. You cannot expect the jsp hiding in the frame to be able to get at the data in the session/request at any particular time. There are many race conditions associated between putting data in the request or session, and then attempting to populate or reload framed pages.
While the use of Tiles does mean that the pages in the entirety have to be reloaded, a good modular design will make the frames obsolete. The one thing I miss with frames is the ability to navigate one frame seperately from others, however there are many ways around that, and a good design wouldn't force the use of frames.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic