File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Question 49 of HFSJ Final mocktest 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 "Question 49 of HFSJ Final mocktest" Watch "Question 49 of HFSJ Final mocktest" New topic
Author

Question 49 of HFSJ Final mocktest

geeta vemula
Ranch Hand

Joined: Jul 18, 2008
Posts: 208
Given:


What about the above taglib directives would cause the JSP to not function?
A. Line 4 is wrong because the prefix attribute must come before the
uri attribute.
B. Line 3 is wrong because there is no uri attribute.
C. Line 4 is wrong because the uri value must begin with http://
D. Line 3 is wrong because the prefix jsp is reserved for standard actions.

The given answer is C. But its not necessary that uri must begin with http:// ?
According to me the answer is d since jsp is the reserved word.
Please clear my doubt.

Thanks,
Geeta
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

I also think it's D. The URI used to identify a tag library is not required to begin with http://


[My Blog]
All roads lead to JavaRanch
Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
Hi Geeta. I tested this in tomcat5.5.9 . Here uri value no need to begin with http:// . I think option C is wrong. Option D is correct.
Victor Bucutea
Ranch Hand

Joined: Nov 24, 2008
Posts: 43
Hi ,


You're right, that is a mistake - i believe - in the book . It even explains that it is not necesarry to use http:// in a URI.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question 49 of HFSJ Final mocktest
 
Similar Threads
Question regarding answers in HFSJ 2nd ed mock exam
HFSJ Mock Exam
HFSJ Edition 2 Final mock exam QNo:49
Final Mock Test Question 49,69, Head First and Servlets
Question 49