Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

c:choose giving illegal text  RSS feed

Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hav a jsp where I'm printing out a list of notes. An Array called "notes" is passed in the request from my Action class. All the notes are displayed in an HTML TABLE, with each note occupying it's own TR. I have to alternate the style of the TR tag. So, even numbered rows should have the "row1" style and odd numbered ones should have "row2" style

So, here's a snippet of my JSP

So, when I run this code, it gives me an error saying

org.apache.jasper.JasperException: Validation error messages from tag library c
Illegal text inside "c:choose" tag: "...".

The funny thing is that this used to work in Tomcat 4.1.24, but someone else meddled around with the environment and downgraded to Tomcat 4.0.6 (dont ask!!), and it stopped working. As far as I can see they havent changed the JSTL tag libraries

So, does anyone know why I get this error??

I changed the JSP to use c:if instead of c:choose and it works but I'm curious why it doesnt work?
[ November 15, 2004: Message edited by: Jayesh Lalwani ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!