Hey everyone,

Just integrated direct web remoting into my tapestry app.  Found one gotcha
that I thought might be worth sharing.  If you start the maven quickstart
archetype your filter mapping will be:

<filter-mapping>
        <filter-name>app</filter-name>
        <url-pattern>/*</url-pattern>
</filter-mapping>

When you try to add the servlet mapping for dwr 
<servlet-mapping>
                <servlet-name>dwr-invoker</servlet-name>
                <url-pattern>/dwr/*</url-pattern>
</servlet-mapping>

This gets blocked by the /* tap filter.  So I moved all my pages to
*.pages.app and all my .tmls into /webapp/app and updated all my css/js
links to use ../ in my .tmls.  Than changed my filter mapping to be the
following:
<filter-mapping>
                <filter-name>app</filter-name>
                <url-pattern>/app/*</url-pattern>
</filter-mapping>

And it all works like magic.
-- 
View this message in context: 
http://www.nabble.com/-T5--Getting-DWR-to-work-with-tapestry%27s-filter-mapping-tp20361316p20361316.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to