No worries. If you have not mapped something explicitly with ServletModule, the request will pass through to the JspServlet or DefaultServlet (in Tomcat and JettyPlus these are configured automatically). So static resources and jsps are served automatically without a mapping.
Dhanji. On Sat, Sep 5, 2009 at 10:20 AM, hezjing <[email protected]> wrote: > It is working now, there is nothing wrong in ServletModule configuration > and it was my typo mistake! > I'm sorry! > > > On Fri, Sep 4, 2009 at 10:58 PM, hezjing <[email protected]> wrote: > >> Hi >> I'm trying to integrate Guice in my web application. >> >> The following ServletModule example: >> >> protected void configureServlets() { >> serve("*.html").with(MyServlet.class); >> serve("/my/*").with(MyServlet.class); >> // etc.. >> } >> >> show how the web request *.html is to be served by MyServlet. >> What will happen to the rest of the web request, say *.png, *.jpg and etc? >> Do I have to map each of these requests in ServletModule? >> >> >> Now my problem is, the browser complaints error 404 when load images/mypdf >> specified in CSS: >> >> .mypdf { >> background-image: url('images/mypdf.png'); >> } >> >> >> Do you think this has something to do in ServletModule ? >> >> >> -- >> >> Hez >> > > > > -- > > Hez > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
