Thanks Matt,

I added the url to the jsp

    <decorator name="none">
        <pattern>/ajax/*</pattern>
        <pattern>/WEB-INF/ajax/companyList.jsp</pattern>
    </decorator>

and now it works.

----- Original Message ----
From: Matt Raible <[EMAIL PROTECTED]>
To: users@appfuse.dev.java.net
Sent: Thursday, July 19, 2007 6:54:24 PM
Subject: Re: [appfuse-user] Cannot exclude page from sitemesh

In addition to excluding the action's URL, you should include the URL
to the JSP as well - since the SiteMesh filter is mapped to forwards
as well as requests.

Matt

On 7/19/07, Dinu Alecsandru <[EMAIL PROTECTED]> wrote:
>
> 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.
>
>
>  ________________________________
> Be a better Globetrotter. Get better travel answers from someone who knows.
> Yahoo! Answers - Check it out.


-- 
http://raibledesigns.com

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








       
____________________________________________________________________________________
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.
http://new.toolbar.yahoo.com/toolbar/features/mail/index.php

Reply via email to