16.6. WEB-INF

The WEB-INF folder contains classes, including beans and tags, as well as the web.xml file.

16.6.1. web.xml

<?xml version="1.0" encoding="ISO-8859-1"?> 

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
     "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
  <description>an online store</description>

  <taglib>
    <taglib-uri>http://store.mysite.com/tags/cart</taglib-uri>
    <taglib-location>/WEB-INF/cart.tld</taglib-location>
  </taglib>

<!--JSP Standard Tag Library 1.0 Core tags-->
 <taglib>
  <taglib-uri>http://java.sun.com/jstl/ea/core</taglib-uri>
  <taglib-location>/WEB-INF/jstl10/tld/c.tld</taglib-location>

 </taglib>
</web-app>

In the web.xml file, we need to declare that we want to use the JSTL core tags, ...

Get Java™ for ColdFusion® Developers 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.