Hello :) I've tried to create new struts2+guice application and use Struts2Integration wiki page as example. All fine except @SessionScoped. ServletScopes will not work untill you add GuiceFilter to your web.xml. Yes, it's clear if you made guice+servlet apllication before, but I didn't do it and spent much time to find the truth.
Please add infromation about it to http://code.google.com/p/google-guice/wiki/Struts2Integration My web.xml (not full): <filter> <filter-name>guiceFilter</filter-name> <filter-class>com.google.inject.servlet.GuiceFilter</filter- class> </filter> <filter> <filter-name>struts</filter-name> <filter- class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</ filter-class> </filter> <filter-mapping> <filter-name>guiceFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>struts</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
