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/
  /() )
 (__ (  If we don't believe in freedom of expression for people we despise,
=/  ()  we don't believe in it at all.  -- Noam Chomsky

Attachment: signature.asc
Description: Digital 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

Reply via email to