What is isScriptingEnabled Attribute in JSP?

JSPJava 8Object Oriented ProgrammingProgramming

The isScriptingEnabled attribute determines if the scripting elements are allowed for use.

The default value (true) enables scriptlets, expressions, and declarations. If the attribute's value is set to false, a translation-time error will be raised if the JSP uses any scriptlets, expressions (non-EL), or declarations.

The attribute's value can be set to false if you want to restrict the usage of scriptlets, expressions (non-EL), or declarations −

<%@ page isScriptingEnabled = "false" %>
raja
Updated on 30-Jul-2019 22:30:25

Advertisements