What is the secret to excluding pages from decoration?

vatoz <[email protected]> Wed, 20 Apr 2005 00:41:10 CDT
Newsgroups gmane.comp.web.sitemesh.general
Message-ID <19855816.1113975700980.JavaMail.os-j2ee@opensymphony01.contegix.com>
Here's what I did, I hope it will work for you...

I just thought like a parser, from the top of the file to the bottom and hoped sitemesh to only take the first pattern filter, so here is what I did in my decorators.xml:

<?xml version="1.0" encoding="ISO-8859-1"?>

<decorators defaultdir="/WEB-INF/decorators">
	<decorator name="nodisponible" page="flat_nodisponible.jsp">
	<pattern>/fotos/caro/*</pattern>
	</decorator>	
	<decorator name="flat" page="flat.jsp">
	<pattern>/*</pattern>
	</decorator>
</decorators>

/fotos/caro/* is the pattern I want to be different from the rest, it works fine, the other pattern url s are still decorated.

I just want to know if it's posible to apply a pattern to files too, like for instance .jpg, so the files under /fotos/caro/* won't be showned

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=1241&messageID=5201#5201


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]