[XQZone General] JSP Tag library question
Nizamuddin, Rashid
rnizamuddin at edmunds.com
Fri May 6 16:44:09 PDT 2005
Hi,
I have a question regardingusing the tag library in a jsp file.
I downloaded ur jsp tag library distributeion and copied
marklogicxquery.tld in my WEB-INF folder and the jar file
MLXQueryTaglib.jar under the lib folder .
I tried ur first example in the tutorial but it didn't work
May I know what is wrong
The following is the code I pasted in the jsp
<%@ taglib uri="http://marklogic.com/jsp/taglib" prefix="xq" %>
<html><head><title>xq:query example 1</title></head>
<body>
<xq:setDataSource host="localhost" port="8061"
user="edmunds" password="rdf"/>
My favorite fruits:
<ul>
<xq:execute>
<xq:query>
for $i in ("apple", "pear", "orange", "guava")
return <li>{ $i }</li>
</xq:query>
</xq:execute>
</ul>
</body>
</body>
</html>
More information about the General
mailing list