On Nov 18, 8:42 pm, decitrig <[email protected]> wrote:
> On Nov 18, 4:45 am, Kazimierz Pogoda <[email protected]> wrote:
>
> > You can pass everything /* through GuiceFilter in web.xml, and then in
> > your ServletModule:
>
> > serveRegex("^((?!^/index\\.html$|^/test\\.html$).)*$").with(MyServlet.class
> > )
You might want to use [.] instead of \\. for the literal period, or
even
/(?!index|test)[.]html$
for the whole regex. Character classes do not use the same
metacharacters
as regexes.
I don't understand why you need the last *. In fact, it's a bad idea
because *
matches zero instances of the item it modifies too. You have arranged
for
MyServlet to match everything.
Eric
--
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en.