my dog learned polymorphism*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFSJ Q13 P332 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 "HFSJ Q13 P332" Watch "HFSJ Q13 P332" New topic
Author

HFSJ Q13 P332

Shobhana Sundar
Greenhorn

Joined: Jul 13, 2005
Posts: 17
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

Joined: Nov 15, 2004
Posts: 1026
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.


Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Shobhana sundararaman
Greenhorn

Joined: Dec 02, 2004
Posts: 1
Thanks Vishnu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HFSJ Q13 P332
 
Similar Threads
JTable Disable Entire Column
digitally signing an xml document.
catch exceptions in JSP
exception in struts handling in JSP
disable node of jtree