You'll have to add more relevant details for us to be able to help you. How are those header/footer/menu generated? What do some of the sample pages look like in terms of code?
In web.xml, I have mapped Sitemesh filter:
For decorating pages, we have to map different URL patterns to the decorator page therefore in decorators.xml file, I have mapped it like following:
<decorator name="decorator" page="decorator-main.jsp">
Each url that ends with .html actually maps to .jsp file which is configured in Spring MVC.
PFA decorator-main.jsp which contains UI Templating logic. In short it uses html table layout to divide the page into four sections i.e. header/menu/footer and contents. Note that <decorator:body/> tag in decorator-main.jsp is simply replaced by actual jsp i.e. the contents portion of the page.
Please let me know if u need to know any other details related to this issue.
decorator-main.jsp.zip 1.2 KB
Hi I too Having Same Issue, can any Give Us the Answer for this Question ?
Here is My Question similar to This Question.
Thanks in Advance.