struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Billy Ng" <evebi...@hotmail.com>
Subject taglib url problem
Date Fri, 27 Sep 2002 19:40:21 GMT
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:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message