I'm new to JSP etc, but it looks like part of the problem is that you can't use EL to access static (class) variables directly. For example, in my JSP:
In the HeadFirst book (my sole source of JSP wisdom right now!), it says the thing on the left of the EL dot operator, i.e. Constants in this case, must be a bean or a Map. If you're using Constants just to provide a bunch of static (class) variables without instantiating it, then I guess you don't have a Bean/Map instance so EL doesn't like it.
Seeing as how these are constants, you could define them as parameters in your XML instead, then let EL access them via the implicit "initParam" Map instead. For example, in web.xml:
In the JSP you can then access the value of the parameter with EL:
But as Tim says, it looks like you still can't put this into your <jsp:useBean> "id" attribute.
As a JSP newbie, can I ask if it is common to mix beans into JSP views like this? My limited understanding of MVC would cause me to instantiate the bean somewhere else e.g. in a servlet, then pass it into the JSP as an attribute, rather than creating it in the JSP view itself. But what do I know, right?