jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sant...@locus.apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/WEB-INF/classes/validator TestLibValidator.java
Date Mon, 13 Nov 2000 17:50:07 GMT
santosh     00/11/13 09:50:07

  Added:       src/server/jsp-tests/WEB-INF/classes/validator
                        TestLibValidator.java
  Log:
  Simple Validator class for Testlib.tld descriptor file
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/WEB-INF/classes/validator/TestLibValidator.java
  
  Index: TestLibValidator.java
  ===================================================================
  package validator;
  
  import javax.servlet.jsp.*;
  import javax.servlet.jsp.tagext.*;
  import java.io.*;
  
  //Validator class for TestLib.tld 
  
  public class TestLibValidator extends TagLibraryValidator
  {
  
  public String validate(String prefix , String uri , PageData page)
  {
  //The validator validates that the prefix names are not more than
  //10 characters in length 
  
     if(prefix.length() > 10)
     return("Prefix too long :Max allowed 10 chars");
     else 
     return null;
  
  }
  
  
  }
  
  
  

Mime
View raw message