The c tag cannot find the xml document if the directory is behind th WEB-INF
directory like:

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"; %>
<c:import url="/WEB-INF/xml/my.xml" var="xml"/>
<c:import url="/WEB-INF/xml/my.xsl" var="xslt"/>
<x:transform xml="${xml}" xslt="${xslt}"/>

, but I change the xml directory to root, it will work

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"; %>
<c:import url="/xml/my.xml" var="xml"/>
<c:import url="/xml/my.xsl" var="xslt"/>
<x:transform xml="${xml}" xslt="${xslt}"/>

Would anybody please tell me why?

Thanks!

Billy Ng


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to