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

<c:choose>
   <c:when test="${a.type == a.ENUM_1}">
    do something
  </c:when>
   <c:when test="${a.type == a.ENUM_2}">
    do something else
  </c:when>
</c:choose>

Could it be done?
Thanks,
Boris
   


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to