Hi,

I'm trying to exclude a page from sitemesh

http://localhost:8080/ajax/companyList.html?q=g

My decorators.xml looks like this

<decorators defaultdir="/decorators">
    <excludes>
        <pattern>/ajax/*</pattern>    
        <pattern>/*ajax=true*</pattern>
        <pattern>/struts/dojo/*</pattern> <!-- OK to remove if you're not using 
Struts -->
        <pattern>/resources/*</pattern>
    </excludes> 
    <decorator name="default" page="default.jsp">
        <pattern>/*</pattern>
    </decorator>
</decorators>


I also tried adding an empty decorator:

    <decorator name="none">

        <pattern>/ajax/*</pattern>        

    </decorator>


My sitemesh.xml 

<sitemesh>
    <property name="decorators-file" value="/WEB-INF/decorators.xml"/>
    <excludes file="${decorators-file}"/> 
    <page-parsers>
        <parser default="true" 
class="com.opensymphony.module.sitemesh.parser.FastPageParser"/>
        <parser content-type="text/html" 
class="com.opensymphony.module.sitemesh.parser.FastPageParser"/>
        <parser content-type="text/html;charset=ISO-8859-1" 
class="com.opensymphony.module.sitemesh.parser.FastPageParser"/>
    
    </page-parsers>

    <decorator-mappers>
        <mapper 
class="com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper">
            <param name="config" value="${decorators-file}"/> 
        </mapper>
    </decorator-mappers>
</sitemesh>

and I also followed tibi's instructions from a previous mail and changed the 
sitemesh.xml to

<sitemesh>
    <property name="decorators-file" value="/WEB-INF/decorators.xml"/>
    <excludes file="${decorators-file}"/> 
    <page-parsers>
    
       <parser default="true" 
class="com.opensymphony.module.sitemesh.parser.HTMLPageParser"/>
       <parser content-type="text/html" 
class="com.opensymphony.module.sitemesh.parser.HTMLPageParser"/>
       <parser content-type="text/html;charset=ISO-8859-1" 
class="com.opensymphony.module.sitemesh.parser.HTMLPageParser"/>    
    
    </page-parsers>

    <decorator-mappers>
       <mapper class= 
"com.opensymphony.module.sitemesh.mapper.ParameterDecoratorMapper">
         <param name="decorator.parameter" value="decorator" />
         <param name="parameter.name" value="confirm" />
         <param name="parameter.value" value="true" />
       </mapper>    
    
        <mapper 
class="com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper">
            <param name="config" value="${decorators-file}"/> 
        </mapper>
    </decorator-mappers>
</sitemesh>

AND STILL NO LUCK !

My action is

      <package name="ajax" extends="default" namespace="/ajax">
        <action name="companyList" class="companyAction" method="filter">
            <result>/WEB-INF/ajax/companyList.jsp</result>
        </action>
      </package>


What am I doing wrong ? 
Thx.





       
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play 
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  

Reply via email to