The
JSP expression language is implemented as part of the JSP container; it's not (normally) available in Java code. Now, it's
possible that, with sufficient knowledge, you could use the JSP container's EL code from normal Java code, but I doubt it; it's almost certainly not written to support that use case.