O'Reilly logo

Head First Servlets and JSP, 2nd Edition by Bert Bates, Bryan Basham, Kathy Sierra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Where the Container looks for Tag Files

The Container searches for tag files in four locations. A tag file MUST have a TLD if it’s deployed in a JAR, but if it’s put directly into the web app (in “WEB-INF/tags” or a sub-directory), it does not need a TLD.

  1. Directly inside WEB-INF/tags

  2. Inside a sub-directory of WEB-INF/tags

  3. Inside the META-INF/tags directory inside a JAR file that’s inside WEB-INF/lib

  4. Inside a sub-directory of META-INF/tags inside a JAR file that’s inside WEB-INF/lib

  5. IF the tag file is deployed in a JAR, there MUST be a TLD for the tag file.

image with no caption

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required