I've a dropdown where i'm trying to display the dropdown values using EL in a c:forEach Loop as shown below :
In the above code, category is a bean class which has following fields:
I'm getting the selected dropdown value in controller servlet as shown below :
When i printed the above line i.e.
i got : instead of selected catID value, which means EL syntax which i'm using to access the catID from category object is wrong.
i tried using the following syntax & by removing "" around EL in 'value' attribute,but both of them didnt work.
Can any one please let me know what is correct usage here?
I just changed my root declaration in web.xml to version 2.5 and for my surprise, it worked perfectly fine. I checked source in the browser and saw that EL was evaluated properly which was not happening earlier for version 2.5. When i changed to 2.4 version i didn't get exception (it worked fine) and now i'm not getting exception in 2.5 version as well. So i'm quite confused and not sure why i was getting initially this error.
Joined: Jul 01, 2007
I was encountering this problem intermittently and on googling i got below link where they say it could be a bug in Tomcat.