Revision: 1487
Author: [email protected]
Date: Tue Feb  1 17:21:20 2011
Log: Fixing indent syntax. This is not the wiki shorthand I know very well :/
http://code.google.com/p/google-guice/source/detail?r=1487

Modified:
 /wiki/ServletModule.wiki

=======================================
--- /wiki/ServletModule.wiki    Tue Feb  1 17:19:31 2011
+++ /wiki/ServletModule.wiki    Tue Feb  1 17:21:20 2011
@@ -140,7 +140,7 @@

Remember to use a `Provider` when injecting either of these elements if the injection point is on a class that is created outside of `RequestScope`. For example, a singleton servlet is created outside of a request, and so it needs to call `Provider.get()` on any `RequestScoped` dependency only after the request is received (typically it its `service()` method.

- The most common way to seed a value within `RequestScope` is to add a <a href="http://download.oracle.com/docs/cd/E17802_01/products/products/servlet/2.3/javadoc/javax/servlet/Filter.html";>Filter</a> in front of your servlet. This filter should seed the scope by adding the value as a request attribute. +The most common way to seed a value within `RequestScope` is to add a <a href="http://download.oracle.com/docs/cd/E17802_01/products/products/servlet/2.3/javadoc/javax/servlet/Filter.html";>Filter</a> in front of your servlet. This filter should seed the scope by adding the value as a request attribute.

For example, assume we want to scope the context path of each request as a `String` so that objects involved in processing the request can have this value injected.

--
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.

Reply via email to