struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rlel...@apache.org
Subject cvs commit: jakarta-struts/src/share/org/apache/struts/validator DynaValidatorForm.java
Date Thu, 01 May 2003 17:54:05 GMT
rleland     2003/05/01 10:54:05

  Modified:    src/share/org/apache/struts/validator DynaValidatorForm.java
  Log:
  deprecate logging methods and indicate that
  logging should be performed by users own logging
  implementation such as commons-logging
  
  Revision  Changes    Path
  1.9       +10 -8     jakarta-struts/src/share/org/apache/struts/validator/DynaValidatorForm.java
  
  Index: DynaValidatorForm.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/validator/DynaValidatorForm.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DynaValidatorForm.java	5 Mar 2003 02:53:15 -0000	1.8
  +++ DynaValidatorForm.java	1 May 2003 17:54:04 -0000	1.9
  @@ -140,19 +140,19 @@
           if (props.containsKey("page")) {
               this.page = ((Integer) props.get("page")).intValue();
           }
  -    
  +
           ServletContext application = getServlet().getServletContext();
           ActionErrors errors = new ActionErrors();
  -    
  +
           Validator validator =
               Resources.initValidator(mapping.getAttribute(), this, application, request,
errors, page);
  -    
  +
           try {
               validatorResults = validator.validate();
           } catch (ValidatorException e) {
               log.error(e.getMessage(), e);
           }
  -    
  +
           return errors;
       }
   
  @@ -162,6 +162,7 @@
        * servlet log file.
        *
        * @param   message     String that describes the error or exception
  +     * @deprecated Use common-logging, or other logging implementation to log debug messages.
        */
       protected void log(String message) {
           if (getServlet().getDebug() >= 1) {
  @@ -176,6 +177,7 @@
        *
        * @param   message     String that describes the error or exception
        * @param   throwable   Throwable error or exception
  +     * @deprecated Use common-logging, or other logging implementation to log debug messages.
        */
       protected void log(String message, Throwable throwable) {
           if (getServlet().getDebug() >= 1) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message