diff --git a/src/main/java/com/woinject/servlet/WOInjectServlet.java b/src/main/java/com/woinject/servlet/WOInjectServlet.java index c9d41af..a07b82d 100644 --- a/src/main/java/com/woinject/servlet/WOInjectServlet.java +++ b/src/main/java/com/woinject/servlet/WOInjectServlet.java @@ -28,18 +28,20 @@ /** * The WOInjectServlet initializes the WOInject framework in the * context of servlet applications. - * + *

* Add the following snippet into the web.xml: - * + *

+ * *

- * 	
- * 		WOInjectServlet
- * 		com.woinject.servlet.WOInjectServlet
- * 		1
- *  	
+ * 	<servlet>
+ * 		<servlet-name>WOInjectServlet</servlet-name>
+ * 		<servlet-class>com.woinject.servlet.WOInjectServlet</servlet-class>
+ * 		<load-on-startup>1</load-on-startup>
+ * 	</servlet>
  * 
- * + * * @author Henrique Prange + * @since 1.1 */ public class WOInjectServlet extends HttpServlet { private static Class loadClass(ClassLoader loader, String classname, byte[] bytes) { @@ -66,6 +68,12 @@ private static Class loadClass(ClassLoader loader, String classname, byte[] b return clazz; } + /** + * Load the changed _NSUtilities class required by WOInject + * during the container initialization. + * + * @see javax.servlet.GenericServlet#init() + */ @Override public void init() throws ServletException { super.init(); diff --git a/src/main/java/com/woinject/servlet/package-info.java b/src/main/java/com/woinject/servlet/package-info.java index 6c7f3a9..db391a8 100644 --- a/src/main/java/com/woinject/servlet/package-info.java +++ b/src/main/java/com/woinject/servlet/package-info.java @@ -16,7 +16,7 @@ /** * This package contains features related to servlet environments. * - * @since 1.0 + * @since 1.1 */ package com.woinject.servlet;