I'd wish to programmatically add a custom VariableResolver when JSF or anything like that is not used, so that before seeking for beans in scopes as mentioned in 1, the EL would first try to resolve variables within it.
The goal is to make objects in the database available in EL right by their names, and there could be a lot of them to put into some scope.
Right now I put a special bean into the session scope under the name, say, 'z', and that bean extends Map interface and thus lets access the objects with expressions like ${z.address}, ${z.fullName}. I'm trying to eliminate that 'z'.
Better if I manage to insert my resolver in a Filter (sure i'll check not to do this multiple times for every web request)
(Edit: maybe I am talking about ELContext, how to put there my own VariableMapper or ELResolver or something like this)