Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

validators
Class DebugValidator  view DebugValidator download DebugValidator.java

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagLibraryValidator
      extended byvalidators.DebugValidator

public class DebugValidator
extends javax.servlet.jsp.tagext.TagLibraryValidator

Example tag library validator that simply dumps the XML version of each page to standard output (which will typically be sent to the file $CATALINA_HOME/logs/catalina.out). To utilize it, simply include a taglib directive for this tag library at the top of your JSP page.

Version:
$Revision: 267129 $ $Date: 2004-03-18 11:40:35 -0500 (Thu, 18 Mar 2004) $

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagLibraryValidator
 
Constructor Summary
DebugValidator()
           
 
Method Summary
 javax.servlet.jsp.tagext.ValidationMessage[] validate(java.lang.String prefix, java.lang.String uri, javax.servlet.jsp.tagext.PageData page)
          Validate a JSP page.
 
Methods inherited from class javax.servlet.jsp.tagext.TagLibraryValidator
getInitParameters, release, setInitParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugValidator

public DebugValidator()
Method Detail

validate

public javax.servlet.jsp.tagext.ValidationMessage[] validate(java.lang.String prefix,
                                                             java.lang.String uri,
                                                             javax.servlet.jsp.tagext.PageData page)
Validate a JSP page. This will get invoked once per directive in the JSP page. This method will return null if the page is valid; otherwise the method should return an array of ValidationMessage objects. An array of length zero is also interpreted as no errors.