dwinterfeldt    02/02/27 22:09:59

  Modified:    contrib/validator build.properties.sample
               contrib/validator/web/example/WEB-INF struts-config.xml
                        web.xml
  Added:       contrib/validator/src/example log4j.properties
  Log:
  Updated example to use loading of message resources from the struts-config.xml.  And 
added log4j activation of through commons logging to the webapp example.
  
  Revision  Changes    Path
  1.1                  jakarta-struts/contrib/validator/src/example/log4j.properties
  
  Index: log4j.properties
  ===================================================================
  # A sample log4j properties file
  
  log4j.rootCategory=DEBUG, Console
  
  # The console appender
  log4j.appender.Console=org.apache.log4j.ConsoleAppender
  log4j.appender.Console.Threshold=DEBUG
  log4j.appender.Console.layout=org.apache.log4j.PatternLayout
  log4j.appender.Console.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
  
  
  
  1.6       +2 -2      jakarta-struts/contrib/validator/build.properties.sample
  
  Index: build.properties.sample
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/validator/build.properties.sample,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- build.properties.sample   26 Feb 2002 05:03:27 -0000      1.5
  +++ build.properties.sample   28 Feb 2002 06:09:59 -0000      1.6
  @@ -15,7 +15,7 @@
   
   # The JAR file containing version 1.0 (or later) of the Digester package
   # from the Jakarta Commons project.
  -commons-digester.jar=d:/java/lib/commons-digester.jar
  +commons-digester.jar=e:/software/commons-digester/commons-digester.jar
   
   # The JAR file containing version 1.0 (or later) of the Logging package
   # from the Jakarta Commons project.
  @@ -23,7 +23,7 @@
   
   # The JAR file containing version 1.1 (or later) of the Logging package
   # from the Jakarta Log4J core.
  -log4j-core.jar=d:/java/lib/log4j-core.jar
  +log4j-core.jar=e:/software/jakarta-log4j/dist/lib/log4j-core.jar
   
   struts.jar=d:/office/struts/jakarta-struts/target/library/struts.jar
   struts.tlds=d:/office/struts/jakarta-struts/target/library
  
  
  
  1.3       +5 -0      
jakarta-struts/contrib/validator/web/example/WEB-INF/struts-config.xml
  
  Index: struts-config.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/contrib/validator/web/example/WEB-INF/struts-config.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- struts-config.xml 15 Jan 2002 03:57:40 -0000      1.2
  +++ struts-config.xml 28 Feb 2002 06:09:59 -0000      1.3
  @@ -90,4 +90,9 @@
           
     </action-mappings>
   
  +  <!-- ========== Message Resources Definitions =========================== -->
  +
  +  <message-resources
  +    parameter="org.apache.struts.validator.example.ApplicationResources"/>
  +    
   </struts-config>
  
  
  
  1.4       +0 -4      jakarta-struts/contrib/validator/web/example/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/validator/web/example/WEB-INF/web.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- web.xml   15 Jan 2002 06:24:59 -0000      1.3
  +++ web.xml   28 Feb 2002 06:09:59 -0000      1.4
  @@ -29,10 +29,6 @@
       <servlet-name>action</servlet-name>
       <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
       <init-param>
  -      <param-name>application</param-name>
  -      
<param-value>org.apache.struts.validator.example.ApplicationResources</param-value>
  -    </init-param>
  -    <init-param>
         <param-name>config</param-name>
         <param-value>/WEB-INF/struts-config.xml</param-value>
       </init-param>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to