cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/modules/input NamingInputModule.java
Date Wed, 16 Jun 2004 20:22:10 GMT
vgritsenko    2004/06/16 13:22:10

  Modified:    src/java/org/apache/cocoon/components/modules/input
                        NamingInputModule.java
  Log:
  Add web.xml example
  
  Revision  Changes    Path
  1.2       +12 -5     cocoon-2.1/src/java/org/apache/cocoon/components/modules/input/NamingInputModule.java
  
  Index: NamingInputModule.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/modules/input/NamingInputModule.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NamingInputModule.java	16 Jun 2004 20:00:07 -0000	1.1
  +++ NamingInputModule.java	16 Jun 2004 20:22:10 -0000	1.2
  @@ -15,11 +15,10 @@
    */
   package org.apache.cocoon.components.modules.input;
   
  +import org.apache.avalon.framework.activity.Initializable;
   import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.configuration.ConfigurationException;
   import org.apache.avalon.framework.thread.ThreadSafe;
  -import org.apache.avalon.framework.activity.Initializable;
  -import org.apache.cocoon.components.modules.input.AbstractInputModule;
   
   import javax.naming.InitialContext;
   import javax.naming.NamingException;
  @@ -43,9 +42,17 @@
    *
    * <p>Example usage:
    * <pre>
  - *   &lt;map:generate src="{naming:java:comp/env/url}"/&gt;
  + *   &lt;map:generate src="{naming:java:comp/env/greeting}"/&gt;
  + * </pre>
  + * This lookups <code>greeting</code> entry from the environment of the webapp.
  + * Webapp's web.xml should define this entry:
  + * <pre>
  + *   &lt;env-entry&gt;
  + *     &lt;env-entry-name&gt;greeting&lt;/env-entry-name&gt;
  + *     &lt;env-entry-value&gt;Hello, World&lt;/env-entry-value&gt;
  + *     &lt;env-entry-type&gt;java.lang.String&lt;/env-entry-type&gt;
  + *   &lt;/env-entry&gt;
    * </pre>
  - * This lookups <code>env/url</code> entry from the environment of the webapp.
    *
    * @author <a href="mailto:vgritsenko@apache.org">Vadim Gritsenko</a>
    * @version CVS $Id$
  
  
  

Mime
View raw message