Florian Hopf wrote: > Hi, > > I am in a situation where I want to map a forward filter based on a > servlet and an additional path. The path that is forwarded to looks > something like this: > > /servlet/long/path.to/my.jsp > > The path info is mapped by the servlet to a JSP in the file system. > > My filter declaration looks like this: > > <filter-mapping> > <filter-name>ResourceTypesListFilter</filter-name> > <url-pattern>/servlet/long/path.to/my.jsp</url-pattern> > <dispatcher>FORWARD</dispatcher> > </filter-mapping> > > This filter works ok if I omit the dispatcher-node and send a redirect > but does not work for forwards. This is what is logged when I enable > debug-logging for ApplicationDispatcher: > > DEBUG [ationDispatcher: 185] servletPath=/servlet, > pathInfo=/long/path.to/my.jsp, queryString=null, name=null > DEBUG [ationDispatcher: 371] Path Based Forward > > The following mapping does work but is too general: > > <filter-mapping> > <filter-name>ResourceTypesListFilter</filter-name> > <url-pattern>/servlet/*</url-pattern> > <dispatcher>FORWARD</dispatcher> > </filter-mapping> > > Is a mapping containing a path info not supported for forwards?
Looks like https://issues.apache.org/bugzilla/show_bug.cgi?id=45441 This is fixed in 6.0.x trunk if you want to try that or wait for 6.0.19. Mark --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]