aspose file tools
The moose likes JSP and the fly likes scripting-invalid wierd behavior Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "scripting-invalid wierd behavior" Watch "scripting-invalid wierd behavior" New topic
Author

scripting-invalid wierd behavior

Aravind Ramanthan
Greenhorn

Joined: Oct 11, 2007
Posts: 1
Hi,
I�m having some trouble with the <scripting-invalid> tag.

Scenario 1:

1. First, I turned on scripting - <scripting-invalid>false</scripting-invalid>
2. Ran test.jsp, and it loaded with the scriptlets(so far so good).
2. Now I turned off scripting - <scripting-invalid>true</scripting-invalid>
Tomcat window said �Reloading context� (which I figure means that the new web.xml has been reloaded.
4. Now I ran test.jsp again and it read the scriptlets (although I have turned on �scripting invalid� now).


Scenario 2:

In the above procedure if I use true in step 1, and then false in step 3, then behavior is as expected (i.e. scriptlets disabled when I ran step 2, and scriptlets enabled in step 5).

I don�t understand why the changes get updated in scenario 2 and not in scenario 1. I also tried restarting the server after changes were made to web.xml, but there wasn't any change in behavior.

My web.xml:

<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>

My test.jsp:

<%= "Sample text" %>

Thanks,
Aravind
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: scripting-invalid wierd behavior
 
Similar Threads
isELIgnored="false"
Scripting Invalid Tag - tomcat 5.5
scripting-invalid
Scripting Invalid
scripting-invalid tag