I'd suggest that you run your app in a debugger and step through the
Sitemesh code. The Sitemesh code is pretty easy to follow. I did this myself
when I experienced some Sitemesh funkiness on Weblogic. Once I ran it
through the debugger, I was able to figure out issues like yours in 15 - 20
minutes.

On 5/25/07, Philip Barlow <[EMAIL PROTECTED]> wrote:


Hi guys,

Hopefully someone can help me out here. I am trying to get an old project
that used tiles to work with Sitemesh and Struts 2. Sitemesh is pretty
cool
by the way but i am having a problem with specifying which pages i want
decorated.

My setup is jsp pages are in /WEB-INF/pages/[several folders]
Logon pages are under /WEB-INF/pages/logon

What i want to do is decorate the pages in the logon pages with
centred.jsp
and the other pages with  main.jsp so i have put this in my decorators.xml
:

<decorator name="main" page="main.jsp">
    <pattern>/*</pattern>
</decorator>

<decorator name="centred" page="centred.jsp" >
    <pattern>/WEB-INF/pages/logon/*</pattern>
    <pattern>/pages/logon/*</pattern>
    <pattern>../WEB-INF/pages/logon/*</pattern>
    <pattern>../pages/logon/*</pattern>
    .........
    [and several other combinations]
    .........
</decorator>

The problem is the logon pages don't get decorated at all. I also removed
the main.jsp as i though this might be overriding but no joy. I tried
specifying /* as a pattern under "centred" and this works.

I assume this is a problem with how i am declaring the pattern to find the
logon pages but i am all out of ideas at this stage and i can't find any
help through google....

Thanks in advance,

Philip

--
View this message in context:
http://www.nabble.com/Driving-me-nuts%21-tf3816362s2369.html#a10803792
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to