File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Decorator pattern location Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Decorator pattern location" Watch "Decorator pattern location" New topic

Decorator pattern location

Ja King

Joined: May 15, 2009
Posts: 28
I am using decorators in my application . I am facing a problem in setting the pattern location in decorators.xml file.

I placed the index.jsp in the commons folder.(WEB-INF/commons/index.jsp) and placed the other .jsp files in the pages folder.(WEB-INF/pages).My problem is how we can set the file pattern in the decorators.xml.

Below one is working because it is common to all pages,

But this one is not working

please tell how to set the pattern for this problem.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

This is not part of JSP. It might help to let us know what framework this is from.

[Asking smart questions] [About Bear] [Books by Bear]
Sai Hegde
security forum advocate
Ranch Hand

Joined: Oct 26, 2010
Posts: 204

Bear is right.. This is not a JSP question...

Ja King is using Sitemesh here to decorate the pages with a common layout.

Have you tried replacing url-pattern with pattern like in following code snippet.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

Moved to a more appropriate forum.
I agree. Here's the link:
subject: Decorator pattern location
It's not a secret anymore!