This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!