aspose file tools*
The moose likes JSP and the fly likes c:choose giving illegal text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "c:choose giving illegal text" Watch "c:choose giving illegal text" New topic
Author

c:choose giving illegal text

Jayesh Lalwani
Ranch Hand

Joined: Nov 05, 2004
Posts: 502
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: c:choose giving illegal text