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.
for downloading: Library: basetag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|