• 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Tiles - different onload method for pages using same layout

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

Is there a way to have a seperate onload for two different pages using the same Layout?

I am using Tile framework with Struts. I have a MyBasicLayout.jsp file. This file has the body tag. I have two other layouts extending from this layout. Is there a way I can call two different onload methods depending on which child layout I am displaying.

To clarify my question even further, if two pages are using the same layout and layout has the body tag. Is there a way to have different onload method for each of these pages?

Can different tiles have different onload methods?

Any help is appreciated.

Thanks,
Mahrukh.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See question 4 of the JavaRanch Struts FAQ. The problem addressed in the FAQ is slightly different than yours, but once you read it, I'm sure you will see how you can use the same technique to solve your problem.
 
reply
    Bookmark Topic Watch Topic
  • New Topic