Java – what are the benefits of using spring El in ognl?
I want to know what mobile spring uses spring El in ognl in its web process products:
http://static.springsource.org/spring-webflow/docs/2.2.x/reference/htmlsingle/spring-webflow-reference.html#el -language-choices
Through ognl, I can create simple classes and execution methods directly and dynamically through the process I know this is not a good practice in actual web page templates (i.e. JSP), because they are based on presentation, and web flow controls the logic of your program. I find it very convenient to use ognl effectively In addition, you can test the process to make sure it works easily
So, two questions:
>What are the main benefits of using spring el for ognl, especially in the context of spring webflow? Can I create objects using spring El?
Solution
So, what about "why" in spiel docs?
Although ognl has its advantages and its fans, it needs too many functions for spring 3, so spiel was born And because spel has become the basic expression language of spring, webflow turns to it as an alternative to ognl
Although I don't have many reasons to use spel, I can't tell you how to do any specific task
About its advantages, it is mainly said that when ognl is stagnant now, spel is the core part of spring, so it will be continuously improved and expanded Frankly, ognl is dead (now maintained by opensymphony.com, which is not a vibrant and active organization)