Folks,
I've just started delving into JSTL, and I've run into some inconsistent
behaviour between some of the tags. This behaviour concerns how the EL
evaluates bean expressions.
For example, say I have a bean "user", with a method "getUserName()". The
EL expression "${user.userName}" works fine in all cases. However, if I use
the expression "${user.UserName}" (note the change of case), then it works
in some cases, but not others.
Specifically, it works for the "value" attributes of <c:set> and <c:out>,
but it doesn't work for <fmt:formatDate> or <c:param>. The latter cases
throw the exception 'Unable to find a value for "UserName" in object'.
I've tried 1.0.1 and 1.0.2, but both behave the same. I can't find any
previous mention of this problem, either. A read through the spec doesn't
yield any clues, but I could be missing something.
Obviously, I can fix this easily enough, but I was wondering about the
inconsistency.
cheers
kenny
--
To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>