aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Problem with scripting-invalid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Problem with scripting-invalid" Watch "Problem with scripting-invalid" New topic
Author

Problem with scripting-invalid

Mukunthan Shanmuganathan
Ranch Hand

Joined: Jul 24, 2007
Posts: 32
Guys!

I have written a code to check how <scripting-invalid> works?

but I get the same answer with and without it.

Can you tell me what I did wrong?

web.xml
-------

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

<web-app >

<jsp-config>
<jsp-property-group>
<url-pattern>/result.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>


result.jsp
----------


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

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

</body>
</html>



Thank You!

:roll:


Dare to know!
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

First of all, your web.xml is not written properly. Please check this FAQ.


[My Blog]
All roads lead to JavaRanch
Mukunthan Shanmuganathan
Ranch Hand

Joined: Jul 24, 2007
Posts: 32
Dear Christophe Verre!

I've got it.

Thank You.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with scripting-invalid