Actuate Information Console custom tags : Information Console custom tag overview

Information Console custom tag overview

This chapter provides reference information about Information Console tag libraries and their custom tags. Custom tags are JSP language elements that you define to encapsulate frequent tasks. A tag library defines a set of related custom tags and contains the objects that implement the tags.

The Information Console tag libraries reside in <context root>\WEB-INF. The tag libraries define the XML tags and attributes that the Information Console pages use. Examine individual pages to determine the tag libraries that they use. For example, viewdefault.jsp uses the internationalization, common, and users tag libraries, as shown in the following example:

<%-- DECLARE ANY RESOURCE BUNDLES USED IN THIS PAGE --%>
<%@ taglib uri="/i18n" prefix="i18n"%>
<%@ taglib uri="/common" prefix="common" %>
<%@ taglib uri="/users" prefix="users" %>

You declare that a page uses tags by including the taglib directive in the page before you use any custom tag. The uri attribute refers to a URI (Uniform Resource Identifier) that uniquely identifies the tag library descriptor (TLD). A TLD file is an XML document that describes a tag library. The prefix attribute defines the prefix that distinguishes tags defined by a given tag library from those provided by other tag libraries. The prefix can differ for each use of the taglib statement, but every prefix must be unique within a page.

Information Console custom tag names are case sensitive.


(c) Copyright Actuate Corporation 2011