EL: compare two character variable problem

Hi,

I have a java bean class.

publicclass Student{

publicchar getSex(){...}

}

EL:

${requestScope.st.sex =='M'}

throws an exception about converting String to Long

How do I treat 'M' as a char not a String?

[583 byte] By [Andersona] at [2007-11-27 4:15:31]
# 1
double post. Answered here: http://forum.java.sun.com/thread.jspa?threadID=5172304&tstart=0
evnafetsa at 2007-7-12 9:21:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...