You likely will have more problems if you don't have time to read the specification.
The JSTL expression language can only reference javabeans properties, collections entries, and map entries. It can't reference variables directly, and it can't call functions, except for javabeans property getters and setters. The fastest way to get this one line to work would be to add a scriptlet before this that takes the static variable and puts it into a page-scoped variable (not a scriptlet variable), and then reference the page-scoped variable in the expression. It would be better in the long run if your business logic put the constants you require into an application-scoped variable (at a single point in the application). > -----Original Message----- > From: Emmanuil Batsis (Manos) [mailto:[EMAIL PROTECTED] > > Can someone please tell me how to make the following expression evaluate > correctly? > > <c:if test="${foo == SomeClass.SOME_CONSTANT}"> > > I know I have to check with the documentation but I'm under pressure and > can't figure it out right now... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]