Class JstlCoreTLV

  • Direct Known Subclasses:
    JstlELCoreTLV, JstlELCoreTLV

    public class JstlCoreTLV
    extends JstlBaseTLV

    A SAX-based TagLibraryValidator for the core JSTL tag library. Currently implements the following checks:

    • Expression syntax validation.
    • Choose / when / otherwise constraints
    • Tag bodies that must either be empty or non-empty given particular attributes. (E.g., cannot have a body when 'value' is specified; it *must* have a body otherwise.) For these purposes, "having a body" refers to non-whitespace content inside the tag.
    • Other minor constraints.
    Author:
    Shawn Bayern
    • Constructor Detail

      • JstlCoreTLV

        public JstlCoreTLV()
    • Method Detail

      • validate

        public javax.servlet.jsp.tagext.ValidationMessage[] validate​(String prefix,
                                                                     String uri,
                                                                     javax.servlet.jsp.tagext.PageData page)
        Overrides:
        validate in class javax.servlet.jsp.tagext.TagLibraryValidator