wood burning stoves 2.0*
The moose likes JSP and the fly likes How to check scripting-invalid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to check scripting-invalid" Watch "How to check scripting-invalid" New topic
Author

How to check scripting-invalid

Mukunthan Shanmuganathan
Ranch Hand

Joined: Jul 24, 2007
Posts: 32
Guys!

In order to check <scripting-invalid> I did as below,

result.jsp
==========

<html>
<body>
<%= "Hi This is JSP" %>

<% out.println("<br>This is a Scriptlet"); %>

</body>
</html>

web.xml
=======

<?xml version="1.0" encoding="ISO-8859-1"?>

<web-app >

<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<scripting-invalid>true</scripting-invalid>
</jsp-property-group>
</jsp-config>

<servlet>
<servlet-name>test</servlet-name>
<jsp-file>/result.jsp</jsp-file>
</servlet>


<servlet-mapping>
<servlet-name>test</servlet-name>
<url-pattern>/EL.do</url-pattern>
</servlet-mapping>

</web-app>

Still the outcome shows as same when I get without <scripting-invalid> Why?

Thank You.



Dare to know!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to check scripting-invalid
 
Similar Threads
JSTL not working on tomcat 4.1.18
Scripting-Invalid(Usage)
jsp-config query
Problem with scripting-invalid
EL not working