public class ScriptFreeTLV
extends jakarta.servlet.jsp.tagext.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:
The default value for all for initialization parameters is false, indicating all forms of scripting elements are to be prohibited.
Constructor and Description |
---|
ScriptFreeTLV()
Constructs a new validator instance.
|
Modifier and Type | Method and Description |
---|---|
void |
setInitParameters(Map<String,Object> initParms)
Sets the values of the initialization parameters, as supplied in the TLD.
|
jakarta.servlet.jsp.tagext.ValidationMessage[] |
validate(String prefix,
String uri,
jakarta.servlet.jsp.tagext.PageData page)
Validates a single JSP page.
|
public ScriptFreeTLV()
public void setInitParameters(Map<String,Object> initParms)
setInitParameters
in class jakarta.servlet.jsp.tagext.TagLibraryValidator
initParms
- a mapping from the names of the initialization parameters to their values, as specified in the TLD.public jakarta.servlet.jsp.tagext.ValidationMessage[] validate(String prefix, String uri, jakarta.servlet.jsp.tagext.PageData page)
validate
in class jakarta.servlet.jsp.tagext.TagLibraryValidator
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.Comments to: jstl-dev@eclipse.org.
Copyright © 2019, 2020 Eclipse Foundation. All rights reserved.
Use is subject to license terms.