首先,我正在使用谷歌AppEngine和Guice,但我怀疑我的问题与这些无关.
当用户连接到我的(GWT)webapp时,URL是直接的html页面.例如,在开发模式中,它是:http://127.0.0.1:8888 / Puzzlebazar.html?gwt.codesvr = 127.0.0.1:997.现在,我按以下方式设置我的web.xml:
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
PuzzleBazar
Puzzlebazar.html
guiceFilter
com.google.inject.servlet.GuiceFilter
guiceFilter
/*
com.puzzlebazar.server.guice.MyGuiceServletContextListener
我的appengine-web.xml是:
puzzlebazaar
1
true
由于我使用的是Guice,我必须在ServletModule中配置额外的过滤器,我这样做:
filter("*.html").through( SecurityCookieFilter.class );
但我的SecurityCookieFilter.doFilter从未被调用过.我试过像“* .html *”或< url-pattern> *< / url-pattern>这样的东西.但无济于事.知道我应该怎么做吗?