![]() |
| |||||||
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
| |||
| 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 |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |