File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Decorator pattern location" Watch "Decorator pattern location" New topic
Author

Decorator pattern location

Ja King
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 61105
    
  66

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


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

Joined: Oct 26, 2010
Posts: 200
    
    1

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
Marshal

Joined: Jan 10, 2002
Posts: 61105
    
  66

Moved to a more appropriate forum.
 
Don't get me started about those stupid light bulbs.
 
subject: Decorator pattern location