• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tag Files

 
Nikhil Jain
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there,
when we use the taglib directive in the jsp .i.e.
<%@ taglib prefix="mytags" tagdir="/web-inf/tags" %>

I don't understand why are we specifying the tagdir with the location of the tag file. Because accor to the spec, the container looks for tag files in the some fixed locations. So does this mean that tagdir attribute is optional.
Shashank
 
Gaurav Gambhir
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What in case if you have your custom directory inside WEB-INF/tags which you put the tag files, how will container know that directory name.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!