How to use the OpenCms JSP Taglib

In order to use the OpenCms JSP taglib, you must insert the "taglib" directive in your JSP page to specify where the OpenCms taglib definition can be found. This is done by including the following line in the beginning of your JSP:

<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>

This directive must be set before any cms tags are used. If used like shown in the example, the prefix "cms" is unique for the OpenCms Taglib. In our examples, all tags of the OpenCms taglib start with the prefix "cms:".

]]>