• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

some questions

 
Abhishek Sharma
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers,

while i was going through mock tests i found a question that states something like this.


suppose header is a valid tag file then.

If TLD has an entry for header tag then is it possible that "tagdir" attribute be replaced by a "uri" attribute.

Please reply,


Thanks in advance,
Abhishek
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TLD? TLD? Tag files don't need no stinkin' TLD!

Really, Tag files do not need to use TLDs... unless they're located in a JAR.

But the statement would be true that if you put your Tag file in a TLD, you could change your taglib directive to use a uri attribute which would then reference your TLD. In this case, your Tag file becomes a member the TLD's library.
[ February 27, 2007: Message edited by: Marc Peabody ]
 
Abhishek Sharma
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well thanks Mark for such a fast reply

If a tag file is inside a jar file its declaration is needed in TLD.
and that thing confused me a bit.

secondly the question format was such in such a way that this was the only option that was close.


Abhishek
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way, please review the JavaRanch Naming Policy. Initials are allowed for a first name but not last name. Please update your display name accordingly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic