jisaacstone
jisaacstone

Reputation: 4284

JSTL error: unexpected attribute `end' in <x:forEach>

I am having troubles. It seems the only supported attributes for <x:forEach> are var, select and jsfc. However I am seeing other people using tags such as begin, end, and step. For me these tags only work on the <c:forEach> iterator.

I'd like to get it working on <x:forEach> so I can avoid an ugly workaround.

Thanks.

Upvotes: 0

Views: 379

Answers (1)

BalusC
BalusC

Reputation: 1109222

The JSTL <x:forEach> tag documentation tells otherwise.

Perhaps you still have old JSTL 1.0 libraries or even a prototype around in the classpath. Or you've an older standard.jar file around in combination with a newer jstl.jar file. In any way, search for standard.jar and jstl.jar files and replace them by a single JAR file jstl-1.2.jar.

Upvotes: 1

Related Questions