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

Question 49 of HFSJ Final mocktest

 
geeta vemula
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also think it's D. The URI used to identify a tag library is not required to begin with http://
 
Chinmaya Chowdary
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic