Originally posted by Bear Bibeault:
What is it you are trying to do with said constant in the JSP page? You will not be able to reference it with the EL.
Is there a way of refering to Constants using the EL?. The only idea I have is to have a Constants class as a JavaBean, but this will lose the idea of a Constants class.
I really like JSTL and have been using it a lot. The EL is very powerful and since i have to use
J2EE 1.3 I'm stick with JSTL 1.0 so can't use advance JSTL elements like functions. Still find it very helful.
But I find that without accesing constants then it is very error prone.
I mean, having a like like this:
<c:set var="miVar" value="${requestScope.myBean}" />
in a lot of pages would be a pain if suddenly the bean is stored in the requestScope under another name rather than "myBean".
Thanks in advance