I would like to programmatically add a custom VariableResolver when JSF or something similar is not used, so before searching for beans in scope, as indicated in 1 , EL will first try to resolve the variables inside it.
The goal is that the objects in the database that are accessible in EL are right by their names, and there could be many to put them in scope.
Currently, I put a special bean in the session area under the name, say, "z", and that the bean extends the map interface and thus allows access to objects with an expression like $ {z.address} $ {z.fullName}. I am trying to exclude this "z".
Itβs better if I manage to insert my resolver in the Filter (of course, I will check to not do this several times for each web request)
(Edit: maybe I'm talking about ELContext, how to put my own VariableMapper or ELResolver there or something like that)
source
share