Comment by anthony....@gmail.com:

dp...@byandlarge.net, i found a solution
you've to add a binding to "force" guice to search in the requestscope.
for my previous example, i added :
bind(Key.get(String.class, Names.named("username"))).to(String.class).in(RequestScoped.class);

now it's working.

For more information:
http://code.google.com/p/google-guice/wiki/ServletModule

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to google-guice-dev@googlegroups.com.
To unsubscribe from this group, send email to 
google-guice-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en.

Reply via email to