File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Chapter - 7 Question 13 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Chapter - 7 Question 13" Watch "Chapter - 7 Question 13" New topic

Chapter - 7 Question 13

Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
Which statement about disabling scripting elements are ture.

option b - You can only disbale scripting at application level.

Any one please explain why this option is not true.

"Know where to find the solution and how to use it - that's the secret of success."
Mateusz Kwasniewski

Joined: Apr 18, 2006
Posts: 15
In <jsp-property-group> element you can use <url-pattern> tag where you specify the resources that the <scripting-invalid> tag refers to.
If you put *.jsp in <url-pattern> than you disable scripting in ALL JSP's in your app, however you can ALSO apply it to one jsp page (eg. /someCat/myPage.jsp) or some pages in a certain catalogue (eg. /someCat/*).

SCJP5 - 90%<br />SCWCD - 91%
I agree. Here's the link:
subject: Chapter - 7 Question 13
It's not a secret anymore!