rleland     2003/09/28 10:03:33

  Modified:    src/share/org/apache/struts/validator ValidatorPlugIn.java
  Log:
  Remove most deprecated messages for commons-validator()
  Still need to initialize ValidatorResources().
  
  Revision  Changes    Path
  1.21      +14 -14    
jakarta-struts/src/share/org/apache/struts/validator/ValidatorPlugIn.java
  
  Index: ValidatorPlugIn.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/validator/ValidatorPlugIn.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- ValidatorPlugIn.java      28 Sep 2003 17:02:51 -0000      1.20
  +++ ValidatorPlugIn.java      28 Sep 2003 17:03:33 -0000      1.21
  @@ -77,7 +77,7 @@
   import org.apache.struts.config.ModuleConfig;
   
   /**
  - * Loads <code>ValidatorResources</code> based on configuration in the 
  + * Loads <code>ValidatorResources</code> based on configuration in the
    * struts-config.xml file.
    *
    * @author David Winterfeldt
  @@ -150,16 +150,16 @@
       }
   
       /**
  -     * Informs the Validators if it has to stop validation when finding the 
  -     * first error or if it should continue.  Default to <code>true</code> to 
  +     * Informs the Validators if it has to stop validation when finding the
  +     * first error or if it should continue.  Default to <code>true</code> to
        * keep Struts 1.1 backwards compatibility.
        */
       private boolean stopOnFirstError = true;
   
       /**
        * Gets the value for stopOnFirstError.
  -     * @return A boolean indicating whether JavaScript validation should stop 
  -     * when it finds the first error (Struts 1.1 behaviour) or continue 
  +     * @return A boolean indicating whether JavaScript validation should stop
  +     * when it finds the first error (Struts 1.1 behaviour) or continue
        * validation.
        * @since Struts 1.2
        */
  @@ -169,8 +169,8 @@
   
       /**
        * Sets the value for stopOnFirstError.
  -     * @param stopOnFirstError A boolean indicating whether JavaScript 
  -     * validation should stop when it finds the first error 
  +     * @param stopOnFirstError A boolean indicating whether JavaScript
  +     * validation should stop when it finds the first error
        * (Struts 1.1 behaviour) or continue validation.
        * @since Struts 1.2
        */
  @@ -196,7 +196,7 @@
           // Load our database from persistent storage
           try {
               this.initResources();
  -            
  +
               servlet.getServletContext().setAttribute(
                   VALIDATOR_KEY + config.getPrefix(),
                   resources);
  @@ -204,7 +204,7 @@
               servlet.getServletContext().setAttribute(
                   STOP_ON_ERROR_KEY + '.' + config.getPrefix(),
                   new Boolean(this.stopOnFirstError));
  -                
  +
           } catch (Exception e) {
               log.error(e.getMessage(), e);
               throw new UnavailableException(
  @@ -236,7 +236,7 @@
        * @exception ServletException if we cannot initialize these resources, not 
thrown by this implementation
        */
       protected void initResources() throws IOException, ServletException {
  -        this.resources = new ValidatorResources(pathnames);
  +        this.resources = new ValidatorResources();
   
           if (pathnames == null || pathnames.length() <= 0) {
               return;
  
  
  

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

Reply via email to