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/doc/userGuide dev_validator.xml
Date Fri, 09 May 2003 00:47:03 GMT
rleland     2003/05/08 17:47:03

  Modified:    doc/userGuide dev_validator.xml
  Log:
  Update documentation to refer to the classes
  FieldChecks, Resources. These have been in Struts 1.1
  for quite a while now. Reported in user list by
  Melonie Brown.
  
  Revision  Changes    Path
  1.34      +8 -8      jakarta-struts/doc/userGuide/dev_validator.xml
  
  Index: dev_validator.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/doc/userGuide/dev_validator.xml,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- dev_validator.xml	16 Apr 2003 04:52:48 -0000	1.33
  +++ dev_validator.xml	9 May 2003 00:47:03 -0000	1.34
  @@ -131,7 +131,7 @@
   <pre><code><![CDATA[
   <field
       property="integer"
  -    depends="required,integer,range">
  +    depends="required,integer,intRange">
       <arg0 key="typeForm.integer.displayname"/>
       <arg1
           name="range"
  @@ -198,7 +198,7 @@
   <pre><code><![CDATA[
   <field
       property="integer"
  -    depends="required,integer,range">
  +    depends="required,integer,intRange">
       <arg0 key="typeForm.integer.displayname"/>
       <arg1
           name="range"
  @@ -357,12 +357,12 @@
   
   <pre><code><![CDATA[
   <validator name="required"
  -     classname="org.apache.struts.validator.util.StrutsValidatorUtil"
  +     classname="org.apache.struts.validator.validator.FieldChecks"
        method="validateRequired"
        msg="errors.required"/>
   
   <validator name="mask"
  -     classname="org.apache.struts.validator.util.StrutsValidatorUtil"
  +     classname="org.apache.struts.validator.validator.FieldChecks"
        method="validateMask"
        depends="required"
        msg="errors.invalid"/>
  @@ -473,11 +473,11 @@
       HttpServletRequest request, 
       ServletContext application) {
   
  -    String value = ValidatorUtil.getValueAsString(
  +    String value = ValidatorUtils.getValueAsString(
           bean, 
           field.getProperty());
       String sProperty2 = field.getVarValue("secondProperty");
  -    String value2 = ValidatorUtil.getValueAsString(
  +    String value2 = ValidatorUtils.getValueAsString(
           bean, 
           sProperty2);
   
  @@ -485,7 +485,7 @@
          try {
             if (!value.equals(value2)) {
                errors.add(field.getKey(),
  -                ValidatorUtil.getActionError(
  +                Resources.getActionError(
                       application,
                       request,
                       va,
  @@ -495,7 +495,7 @@
             }
          } catch (Exception e) {
                errors.add(field.getKey(),
  -                ValidatorUtil.getActionError(
  +                Resources.getActionError(
                       application,
                       request,
                       va,
  
  
  

---------------------------------------------------------------------
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