javax.servlet.jsp.jstl.tlv

Class ScriptFreeTLV


  • public class ScriptFreeTLV
    extends TagLibraryValidator

    A TagLibraryValidator for enforcing restrictions against the use of JSP scripting elements.

    This TLV supports four initialization parameters, for controlling which of the four types of scripting elements are allowed or prohibited:

    • allowDeclarations: if true, indicates that declaration elements are not prohibited.
    • allowScriptlets: if true, indicates that scriptlets are not prohibited
    • allowExpressions: if true, indicates that top-level expression elements (i.e., expressions not associated with request-time attribute values) are not prohibited.
    • allowRTExpressions: if true, indicates that expression elements associated with request-time attribute values are not prohibited.

    The default value for all for initialization parameters is false, indicating all forms of scripting elements are to be prohibited.

    Author:
    Mark A. Kolb, Shawn Bayern (minor changes)
    • Constructor Detail

      • ScriptFreeTLV

        public ScriptFreeTLV()
        Constructs a new validator instance. Initializes the parser factory to create non-validating, namespace-aware SAX parsers.
    • Method Detail

      • setInitParameters

        public void setInitParameters(Map<String,Object> initParms)
        Sets the values of the initialization parameters, as supplied in the TLD.
        Overrides:
        setInitParameters in class TagLibraryValidator
        Parameters:
        initParms - a mapping from the names of the initialization parameters to their values, as specified in the TLD.
      • validate

        public ValidationMessage[] validate(String prefix,
                                            String uri,
                                            PageData page)
        Validates a single JSP page.
        Overrides:
        validate in class TagLibraryValidator
        Parameters:
        prefix - the namespace prefix specified by the page for the custom tag library being validated.
        uri - the URI specified by the page for the TLD of the custom tag library being validated.
        page - a wrapper around the XML representation of the page being validated.
        Returns:
        null, if the page is valid; otherwise, a ValidationMessage[] containing one or more messages indicating why the page is not valid.

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/servlet/jsp/jstl/tlv/ScriptFreeTLV.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com/en/java/, Class ScriptFreeTLV

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.