Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

scripting-invalid tag

 
Giri Thava
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!