Revision: 1490
Author: [email protected]
Date: Wed Feb 2 18:37:36 2011
Log: Adding semicolons per recent comment.
http://code.google.com/p/google-guice/source/detail?r=1490
Modified:
/wiki/ServletModule.wiki
=======================================
--- /wiki/ServletModule.wiki Tue Feb 1 17:21:20 2011
+++ /wiki/ServletModule.wiki Wed Feb 2 18:37:36 2011
@@ -40,14 +40,14 @@
@Override
protected void configureServlets() {
- serve("*.html").with(MyServlet.class)
+ serve("*.html").with(MyServlet.class);
}
}
}}}
This registers a servlet (subclass of `HttpServlet`) called `MyServlet` to
serve any web requests ending in `.html`. You can also use a path-style
syntax to register servlets as you would in `web.xml`:
{{{
- serve("/my/*").with(MyServlet.class)
+ serve("/my/*").with(MyServlet.class);
}}}
== Filter Mapping ==
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" 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-dev?hl=en.