Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ Q13 P332

 
Shobhana Sundar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The answer given is D. The explanation given says we can disable scripting in selective jsp's by specifying selective url patterns to be disabled.

Can someone explain how this is done? How can we disable it in selective jsp's?

Thanks
Shobhana
[ January 13, 2006: Message edited by: Shobhana Sundar ]
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You specify the jsp pages in <url-pattern> element for which scripting should be disabled.



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



If you give it as
<url-pattern>*.jsp</url-pattern>
then scripting will be disabled in all the jsp pages in your web application.
 
Shobhana sundararaman
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Vishnu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic