Base taglib ver. 1.1

    Custom JSP tag BasePath lets you obtain the base URL. In other words for urls like http://your_server/path/file it will return http://your_server part.

For example:
 


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

Base is: <map:BasePath />

in this example tag just prints a base URL

Tags are:

BasePath

Prints (saves in the page scope variable) a base URL. Attributes are:

1) path Optional attribute. Describes an URL. Bt default tag uses the current URL.
2) id Optional parameter. Describes a name for a page scope variable (type is java.lang.String). Without this parameter tag just prints data.

for downloading:

Library: basetag.jar    Description: taglib.tld

© Coldbeans      Comments?

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

Also in Coldtags: