Re: directory specific decoration not working with struts modules
Sanjiv Jivan <[email protected]> Mon, 27 Jun 2005 09:23:30 -0400
| Newsgroups | gmane.comp.web.sitemesh.general |
|---|---|
| Message-ID | <[email protected]> |
I've seen the same behavior with Weblogic 8.1. To make the decorators work on Weblogic and other web containers, I've added both entries in my decorators.xml file. <decorator name="menu" page="template.jsp"> <!-- url path --> <pattern>/shipper*</pattern> <!-- filesystem path --> <pattern>/_shipper/*</pattern> </decorator> Sanjiv On 6/27/05, Suhel Rizvi <[email protected]> wrote: > > After inserting some debug statement into the ConfigDecoratorMapper class > which is being used in my app to decorate, I have found that the urls being > passed to the decorator are not the fully typed urls but local path of the > jsp without even the module subdirectory name. > > This is why my decorator.xml definitions referring to the module > subdirectory to decorate are not being picked up - the subdirectory name is > not being passed in the url to the decorator. > > I am using bea's Weblogic 8.1 SP2 as my application server and I am not > sure whether this is a problem specific to the server or not. > > Apart from hacking the ConfigDecoratorMapper class itself to try and > retrieve the full url of the pages being accessed I dont know what the > proper way is to solve this problem. > > Anybody have any ideas ? > > --------------------------------------------------------------------- > Posted via Jive Forums > > http://forums.opensymphony.com/thread.jspa?threadID=3568&messageID=9324#9324 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >