Help coderanch get a
new server
by contributing to the fundraiser
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Tiles Reload problem???

 
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,
I have one problem. I have a header, footer, content page and navigation page. All the pages are combined into one page using

<body>
<table border="1" width="750" cellspacing="1">
<tbody>
<tr><td colspan="2"><tiles:insert attribute="header" /></td></tr>
<tr>
<td width="125"><tiles:insert attribute="navigation" /></td>
<td width="400"><tiles:insert attribute="body" /></td>
</tr>
<tr><td colspan="2"><tiles:insert attribute="footer" /></td></tr>
</tbody>
</table>
</body>

But using this link when i click one link, that page is displayed in body. but all the pages reloaded. my expectation is header and footer SHOULD NOT BE loaded. Only content page should be load.

So what is the problem of this? Can I over come this??? I think it's like HTML Frames.....

Thanks
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That is the problem: you are expecting this to work like HTML frames.
Tiles and frames are different.
In fact, the tiles you specify indicate how ONE HTML file should be built, piece by piece. When it boils down to the final rendering, you will see one giant FLAT (non-framed) HTML file which is a conglomerate of all the Jsps you have specified in your Tiles definition.
Loading or reloading a page causes new HTML to be rendered for the entire page. It is useful to have HTML comments in your JSPs so you know where each one starts and stops, as these are visible when you view source.

Hope this helps.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

If both tiles and frames are different, then wats the alternative for frames when i use struts,

i hope anyone answer.

SANTHAKUMAR.
 
Elie Hirschman
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you mean a way that does not reload each frame each time, then I don't have an answer. Is it that important not to reload?
There is a element, but none for frameset that I know of.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic