Evaluating EL twice
Victor Williams Stafusa da Silva
posted 7 years ago
Hi people. I joined a project where EL-expressions are readed from XML files. So I need to find a way to evaluate an EL-expression twice. For example, let suppose that this is readed from a XML and saved in a String variable x:In my jsp, I need to do something like this (I know that currently this is illegal):That application is not mine, and I am refactoring it. However I can't do whatever I want, and specifically I can't drop nor change the behavior of the feature of reading EL from XML files. In the actual code, this problem is solved with very ugly and hackish scriptlets and taglibs with code like this:My objective is to eliminate such scriptlets and minimize the use of such taglibs. So, somebody knows a way to accomplish this? Is double EL evaluation possible? If not, what workarounds I could use that are not any worse than these scriptlets?