• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scripting-invalid tag in web.xml

 
mysha ahamed
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Iam trying to disbale scripting with

<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<scripting-invalid>true</scripting-invalid>
<page-encoding>UTF-16</page-encoding>
</jsp-property-group>
</jsp-config>

1.Iam not having any translation time err if i use scripting elements in my jsp?.
2.for pageEncoding i read tht if v give different pageEncodings in
<jsp-property-group> and
in my jsp page <%@ page pageEncoding %> ,
It will give error ,But iam not having any error..
Can any one pls explain ..
Thnx
 
mysha ahamed
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Just for info Iam using tomcat-5.0.30
Thnx
 
Sergey Tyulkin
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you try to exclude <jsp-config> element?
Although, the specification requires it, some containers parse th DD according old rules.
So try simply
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<scripting-invalid>true</scripting-invalid>
<page-encoding>UTF-16</page-encoding>
</jsp-property-group>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic