Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

[T5] Getting DWR to work with tapestry's filter mapping

BarryDev

2008-11-06

Replies: Find Java Web Hosting

Author LoginPost Reply

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.
--
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.