Class ScriptFreeTLV

java.lang.Object
jakarta.servlet.jsp.tagext.TagLibraryValidator
jakarta.servlet.jsp.jstl.tlv.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.