In my jsp, I have the following:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set scope="request" var="test" value="${com.xxx.foo.Bar.getBar()}" />
But this seems to store test
as a string with the literal value of ${com.xxx.foo.Bar.getBar()}
rather than the return value of that method (which is an enum).
Here getBar()
is an instance method, not a static method.
What am I doing wrong?