Multiple choice technology programming languages

Which statements about disabling scripting elements are true?

  1. You can only disable scripting at the application level

  2. You can disable scripting via DD by using <scripting-invalid> element

  3. You can disable scripting via DD

  4. You can disable scripting programmatically by using the isScriptingEnabled page directive attribute

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Scripting elements can be disabled at the application level using the element in the deployment descriptor (web.xml). They cannot be disabled programmatically via page directive - the isScriptingEnabled attribute does not exist for this purpose.