XPath taglib ver. 1.2


    Custom JSP tags library lets you perform XPath processing right in your JSP pages. You can provide XML data as an URL or as a tag's body. 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. Tag's body describes your XML data. Parameters are:

1) url Optional attribute. Describes an URL for your XML file
2) expr Describes 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: