posted 16 years ago
Scripting elements are working properly even after I configure the
<scripting-invalid>true</scripting-invalid> tag in my web.xml file.
I don't understand why this happens.
This is my web.xml file:
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<scripting-invalid>true</scripting-invalid>
</jsp-property-group>
</jsp-config>
</web-app>
I have two more questions.
Which are scripting elements? Ok. I know scriptlets,expressions and declarations are
scripting elements, but I don't know whether a "directive" is a scripting element.
Just tell me whether a "directive" is a scripting element or not.
And the final question is:
How a container would handle a "directive" if I have invalidated the scripting using
<scripting-invalid>true</scripting-invalid> tag in my DD? I mean would the container
simply ignore the "directive" element or will it take it into account?
Advance thanks.