tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Tordini <>
Subject [standard] Wrong behaviour of x:out inside x:forEach
Date Fri, 09 Jul 2004 14:58:44 GMT
hi all,
inside a x:forEach loop, i put an x:out that evaluates an XPath 
expression on a document which is not same of the x:forEach.
The x:out seems to behave strangely. Take a look at following JSP:


<%@ taglib prefix="x" uri="" %>
<%@ taglib prefix="c" uri="" %>
<c:import url="sample.xml" varReader="r">
   <x:parse var="sample" doc="${r}"/>
<x:forEach select="$sample/sample/link">
   <c:set var="link">
     <x:out select="@href"/>

   <c:import url="${link}" varReader="r2">
     <x:parse var="sample2" doc="${r2}"/>

   <!-- *** this does not work *** -->
   <x:out select="$sample2/sample2/text"/>

   <!-- this does work, but i think it is not correct -->
   <x:out select="$sample2/text"/>



   <link href="sample2.xml"/>


   <text>this is just a test!</text>


I'm using JSTL 1.1, Jakarta Taglib Standard 1.1.0, Tomcat 5.0.25 (same 
problem on both linux and windows)
Any suggestions? Is this a bug?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message