Custom JSP tag lets you obtain the relative web path equivalent to a particular file system path. This tag is opposite to MapPath. For example:
<%@ taglib uri="taglib.tld" prefix="map" %> Web path: <map:WebPath path="c:\\orion\\default-web-app\\cj\\test101.jsp"/> in this example tag print /cj/test101.jsp Tags are: WebPath Prints (saves in the page scope variable) a web equivalent to the provided absolute file path. Attributes are: 1) path Describes a source path
for downloading: Library: webpathtag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|