Init taglib ver. 1.2

    Custom JSP taglib lets you perform the global initialization right in your JSP pages. Tag init is similar to the jsp:include but the described page will be included (executed) only once. For example:
 


<%@ taglib uri="taglib.tld" prefix="global" %>

<global:init page="global.jsp/">

So you may include this fragment in all your JSP pages, but global.jsp will be executed only once for your application. Attribute scope lets you describe the level where this functionality will be provided: application or session. Also you can describe the executed code as a body for this tag.

Tags are:

init

Body tag lets you perform a global initialization. Parameters are:

1) page Describes a page that will be executed only one time within the given scope.
2) flush Optional parameter. Possible values are true or false. Describes a flush status for the included page. Default value is false.
3) scope Optional parameter. Possible values are application or session. Describes a scope for the included page. Default value is application.
4) cond Optional parameter. Describes a boolean value tag's behavior depends on. Default value is true (include).

for downloading:

 Library: inittag.jar     Description: taglib.tld

 © Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: