google-code-export / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
2 stars 1 forks source link

Guice servlet doesn't map the default servlet /* properly #367

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When you have a default servlet installed
  <servlet-mapping>
    <servlet-name>someservlet</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>
...then Guice-servlet doesn't work. It doesn't recognize that /* is special. It 
returns "" as the servlet 
path.

We should probably special case the empty servlet path, and treat it as if '/' 
was returned instead.

http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpServletRequest.html
#getServletPath(
)

Original issue reported on code.google.com by limpbizkit on 3 May 2009 at 8:39