JSP Tag Library for Generating XML Dynamically
To use the actions from this library in your JSP pages, copy xmltaglib.jar, saxdomix.jar and dslogging.jar to the /WEB-INF/lib subdirectory of your web application. Then add the following directive at the top of each JSP. You can change the "o" prefix if it conflicts with the prefix of another tag library.
<%@ taglib prefix="o" uri="http://devsphere.com/xml/taglib/output" %>
The tag library descriptor (TLD) is contained by the xmltaglib.jar file and the application server looks for it using the same mechanism that loads the classes. If you think there might be multiple files called OutputXML.tld in your CLASSPATH , copy this TLD file to the /WEB-INF subdirectory of your web application. Then add a <taglib> element to your web application deployment descriptor in /WEB-INF/web.xml like this:
<taglib>
<taglib-uri>http://devsphere.com/xml/taglib/output</taglib-uri>
<taglib-location>/WEB-INF/OutputXML.tld</taglib-location>
</taglib>
Note: Currently, XJTL supports JSP 1.2 and uses Apache JSTL 1.0
to evaluate the ${...} expressions. Therefore, you have to deploy XJTL together
with JSTL. The next version of XJTL will be based only on JSP 2.0.
|