Hi,
I think accessing the static values of the class of the actual object
would be fine (well-defined, clear, intuitive). But I agree it departs
from the objects with properties model.
In any case, a mechanism for defining (and/or accessing) named constants
would be nice.
Thanks for the
Hi,
It would be useful if the JSTL expression language supported enum
constants access through the '.' operator. For example:
class A
{
public final static int ENUM_1 = 0;
public final static int ENUM_2 = 1;
public int getType() // returns one of ENUM_1, ENUM_2 etc...
}
and then
Yeah, the topic has come up. It could be done in principle, but
- it won't make it into JSTL 1.0
- there are problems with referring to static members of a class
The JSTL EL just refers to objects, so it's not clear which class in
the object's ancestry hierarchy the static values would