tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alef Arendsen" <>
Subject Problem with nested c:forEach in fmt:message tag
Date Wed, 29 Jan 2003 15:18:21 GMT
Hi all,

I'm having some trouble with the c:forEach tag when I nest it in a
fmt:message tag. The following is what I want to generate:

<fmt:message key="XXXX">
	<fmt:param value="1"/>
	<fmt:param value="2"/>

Where the fmt:param's have to be generated from an object array. So the
following is the code I use:

<fmt:message key="XXXX">
	<c:forEach items="${objectArray}" var="replacement">
		<fmt:param value="${replacement}"/>

Even if the objectArray is filled, it does not generate any params at
all. When I use:

<fmt:message key="XXXX">
	<fmt:param value="${objectArray[0]}"/>

It works, it correctly outputs the param (of course the objectArray
needs to have at least one value)!!! It seems that the nested c:forEach
just absorbs or does not output the params on the temporary output
stream. It kind of appears to me as being a bug, I've tried every

Maybe you guys have any clue?


Alef Arendsen
JTeam B.V.
Donker Curtiusstraat 7-412
1051 JL  Amsterdam
T: +31 (20) 486 20 36
M: +31 (6) 24 111 996
F: +31 (84) 837 00 00

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

View raw message