commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/validators ValidatorTag.java
Date Fri, 12 Jul 2002 04:00:49 GMT
dion        2002/07/11 21:00:49

  Modified:    latka/src/java/org/apache/commons/latka/jelly/validators
                        ValidatorTag.java
  Log:
  Fail when the request isn't found
  
  Revision  Changes    Path
  1.3       +9 -4      jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/validators/ValidatorTag.java
  
  Index: ValidatorTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/validators/ValidatorTag.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ValidatorTag.java	9 Jul 2002 17:22:39 -0000	1.2
  +++ ValidatorTag.java	12 Jul 2002 04:00:48 -0000	1.3
  @@ -91,6 +91,11 @@
           if (getRequestId() == null) {
               throw new MissingAttributeException("requestId not provided");
           }
  +        
  +        if (getRequest() == null) {
  +            throw new IllegalStateException("the http request: " + 
  +                getRequestId() + " was not found");
  +        }
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message