• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ mock exam Q9

 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which is true about tag libraries in a web application?

A TLD file in a JAR file must be located at META-INF/taglib.tld

I feel this is a right option but the explanation given is more than one TLD file can exist inside a single JAR with different file names.This is not clear to me.Can anyone please explain?
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the answer for this one.Thought I will share it.The tld name should be taglib.tld and it should reside inside META-INF folder if tag library is packaged as jar was for the previous version of jsp.Currently it can reside in META-INF or any other sub directory under it and name can be anything.Please correct me if I am wrong
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic