When a JSP uses more than one tag library

If you want to use more than one tag library in a JSP, do a separate taglib directive for each TLD. There a few issues to keep in mind...

  • Make sure the taglib uri names are unique. In other words, don’t put in more than one directive with the same uri value.

  • Do NOT use a prefix that’s on the reserved list. The reserved prefixes are:

    jsp:

    jspx:

    java:

    javax:

    servlet:

    sun:

    sunw:

Get Head First Servlets and JSP, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.