Hi,

You don't need to declare a mapping for the Stripes dispatcher servlet : DMF
embeds its own.

Since DMF only responds to pseudo 404, I think that you only need the GWT
servlet mapped in web.xml (and DMF, mapped to /* of course). This way, if a
request maps gwt then it'll be handled by the GWT servlet, otherwise if it
matches an action url binding, then DMF will handle it.

Cheers

Remi

2010/10/26 Oscar Westra van Holthe - Kind <os...@westravanholthe.nl>

> On 25-10-2010 at 12:01, farouk alhassan wrote:
> > Can the DynamicMappingFilter not be mapped to the DispatcherServlet like
> this?
> >
> >     <filter-mapping>
> >         <filter-name>DynamicMappingFilter</filter-name>
> >         <servlet-name>DispatcherServlet</servlet-name>
> >         <dispatcher>REQUEST</dispatcher>
> >     </filter-mapping>
>
> It can, but this is really just a no-op. The DynamicMappingFilter only does
> something when the unfiltered request returns a 404 error. And when that
> happens, it already lets the DispatcherServlet handle the request.
>
> So in this setup, you can just as well leave it out.
>
>
> >     <servlet-mapping>
> >         <servlet-name>GWTServlet</servlet-name>
> >         <url-pattern>/gwt</url-pattern>
> >     </servlet-mapping>
> >
> >     <servlet-mapping>
> >         <servlet-name>DispatcherServlet</servlet-name>
> >         <url-pattern>/*</url-pattern>
> >     </servlet-mapping>
> >
> > Am not an expert in Servlet API so this may not be correct
>
> Although correct, this does have the effect of mapping everything except
> /gwt
> to Stripes. If that is intended, setup the DynamicMappingFilter to filter
> /*
> and remove the DispatcherServlet as it's already used implicitly.
>
> If you want the two separate URL spaces, remove the DynamicMappingFilter
> and
> map the DispatcherServlet to /stripes instead.
>
>
> Oscar
>
> --
>   ,-_  Oscar Westra van Holthe - Kind      
> http://www.xs4all.nl/~kindop/<http://www.xs4all.nl/%7Ekindop/>
>  /() )
>  (__ (  If we don't believe in freedom of expression for people we despise,
> =/  ()  we don't believe in it at all.  -- Noam Chomsky
>
> -----BEGIN PGP SIGNATURE-----
>
> iEYEARECAAYFAkzHGPsACgkQLDKOJAl7tOITVwCfZC2dGLnsTjoJ2vpwqjJ0I5ir
> lXIAoMFAT3IvQdR/aAvt/lOUro+Y1mB4
> =ujGq
> -----END PGP SIGNATURE-----
>
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to