Sitemesh and Ajax

Jay Bose <[email protected]> Sun, 10 Dec 2006 10:49:03 CST
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <9479312.1165769382649.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
I am using WebWork-2.2.4 and the Sitemesh-2.2.1.

In the Webwork2 documentation for Sitemesh integration (http://wiki.opensymphony.com/display/WW/SiteMesh), users are directed to place the [b]ActionContextCleanUp[/b] 1st. Then the [b]SiteMesh filter[/b], and then the [b]FilterDispatcher[/b].

I was having a problem getting requests to work within filtered pages, and as an experiment I moved the [b]Sitemesh filter[/b] [i]above[/i] the [b]ActionContextCleanUp[/b]. This gave me the filter chain below. After this, my ajax calls began to connect. Any ideas why this order works, and not the documented version?

[code]
    <filter-mapping>
        <filter-name>sitemesh</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>webwork-cleanup</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>webwork</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
[/code]
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=52858&messageID=106447#106447

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