• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Problem with scripting-invalid

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all, your web.xml is not written properly. Please check this FAQ.
 
Mukunthan Shanmuganathan
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Christophe Verre!

I've got it.

Thank You.
 
reply
    Bookmark Topic Watch Topic
  • New Topic