Revision: 1435
Author: sberlin
Date: Wed Dec 8 18:54:30 2010
Log: Edited wiki page Struts2Integration through web user interface.
http://code.google.com/p/google-guice/source/detail?r=1435
Modified:
/wiki/Struts2Integration.wiki
=======================================
--- /wiki/Struts2Integration.wiki Wed Dec 8 18:52:54 2010
+++ /wiki/Struts2Integration.wiki Wed Dec 8 18:54:30 2010
@@ -1,7 +1,7 @@
=Struts 2 Integration=
To install the Guice Struts 2 plugin with Struts 2.2 or later, simply
include `guice-struts2-plugin-3.0.jar` in your web application's classpath,
-create a subclass of !GuiceServletContextListener that implements
getInjector and adds any servlets and filters (using !ServletModule) and
the !Struts2GuicePluginModule, and a web.xml file that references
your !GuiceServletContextListener subclass as a listener. For examples,
look at the example
[http://code.google.com/p/google-guice/source/browse/trunk/extensions/struts2/example/root/WEB-INF/web.xml
web.xml] and
[http://code.google.com/p/google-guice/source/browse/trunk/extensions/struts2/example/src/com/google/inject/struts2/example/ExampleListener.java
GuiceServletContextListener subclass].
+create a subclass of !GuiceServletContextListener that implements
getInjector and adds any servlets and filters (using !ServletModule) and
the !Struts2GuicePluginModule, and a web.xml file that references
your !GuiceServletContextListener subclass as a listener. For examples,
look at the example
[http://google-guice.googlecode.com/svn/trunk/extensions/struts2/example/root/WEB-INF/web.xml
web.xml] and
[http://google-guice.googlecode.com/svn/trunk/extensions/struts2/example/src/com/google/inject/struts2/example/ExampleListener.java
GuiceServletContextListener subclass].
Guice will inject all of your Struts 2 objects including actions and
interceptors. You can even scope your actions.
==A Counting Example==
--
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-...@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.