tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kurt Battisti <kurt.batti...@gmx.net>
Subject XTAGS -XPath functions position() and last() always return 0
Date Fri, 02 May 2003 06:00:45 GMT
Hello,

I'm using XTAGS in a web application (Win, Tomcat 4.1.24, JDK 1.4.1_01, 
jwsdp-1.1, xtag-20030501). This Taglib is great thing. I really enjoy 
using it.

My Problem:
The following (simplified) code don't work in my JSP. The functions 
position() and last() always return 0 regardless of how many entries 
exist. Is this a bug or just not implemented. I can't find anything in 
the documentation.

<xtags:forEach select="query">
	<xtags:forEach select="fields/field">
		<xtags:if test="position()!=last()">,</xtags:if>
	</xtags:forEach>];
</xtags:forEach>

I read some questions about that topic in this list but nothing was 
answered.
Maybe someone could give me a hint?

Regards, Kurt


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message