WebPath taglib ver. 1.2

    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
2) id Optional parameter. Describes a name for page scope variable (type is java.lang.String). Without this parameter tag just prints data.

for downloading:

Library: webpathtag.jar    Description: taglib.tld

© Coldbeans      Comments?

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

Also in Coldtags: