Garayed.com  

Go Back   Garayed.com > Java
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-04-2008, 04:19 PM
Zaza
 
Posts: n/a
Default Sitemesh : set property from decorated page for decorator

Hi,

I'm using sitemesh.

I have a main.jsp for the main template, to add header and footer to
each page.

In header.jsp, I need an information (the "theme" of the page) that
must be provided by each decorated page. I don't find how to set, in
each decorated page, a "theme" property, that I can retrieve in
main.jsp (for exemple with "${thePage.theme}") avec give this property
to header.jsp.

I have searched, something arround this line in main.jsp :

<decorator:usePage id="thePage" />
<page:applyDecorator name="include" page="decorations/Header.html?
theme=${thePage.theme}" />

but I have this error :

The class 'com.opensymphony.module.sitemesh.parser.Tokenized HTMLPage'
does not have the property 'theme'.

and I don't find how to set "theme" property in each decorated page.

Any idea ?

Thanks,

Xavier
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:46 PM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.