XPath taglib ver. 1.1

    Custom JSP tags library lets you perform XPath processing right in your JSP pages. For example, the following code requests title tag from RSS feed:
 


<%@ taglib uri="taglib.tld" prefix="p" %>
<p:ImportXml url="http://feeds.feedburner.com/AbavanetTechnicalCorner" expr="//title"/>

Tags are:

ImportXml

Body tag evaluates XPath expression against the given XML file. Parameters are:

1) url Describes an URL for your XML file
2) expr Describes a XPath expression
3) id Optional parameter. Describes a name for page scope variable (type is java.lang.String) for the result. Without this attribute tag just prints the requested data.

for downloading:

Library: xpathtag.jar    Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: