Web デプロイメント記述子ファイルには、URI を実際の TLD ファイルにマップする <taglib-uri> タグと <taglib-location> タグが含まれます。 <taglib-uri> は、WEB-INF/taglib.tld として発行される TLD ファイルの別名として機能します。 これで、JSP ファイル内の taglib ディレクティブを短縮することができます。
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd"> </web-app> <display-name>helloWorld-server</display-name> <taglib> <taglib-uri>mytags</taglib-uri> <taglib-location>WEB-INF/taglib.tld</taglib-location> </taglib> </web-app>