Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

q 54 HFS mock p.827

Alan Smyth
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I guess i am missing something obvious here, but surely the uri attribute of the <%@ taglib %> directive can be anything you like, regardless of whether there is a taglib element in the DD??

I thought that the Container would search in an expected location (e.g. under /WEB-INF) for .tld files, then examine these for a <uri> element that matches the uri attribute in said <%@ taglib %> directive.

But the book answer p.827 states that in the absence of a <taglib> element in the DD, the URI must be a full path relative to the application root.

Now if the .tld doesnt contain a matching <uri>, then maybe the book answer is correct?? I am really confused now guys, hope someone can clear my muddle...
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic