开发者

EL over Scriptlets

开发者 https://www.devze.com 2022-12-15 04:22 出处:网络
what is the advantage of using EL over scriptlets in JSP.EL开发者_运维问答 is said to be scriptfree languageEL keeps the JSP free from errorprone raw Java code and forces you to write the JSP accordin

what is the advantage of using EL over scriptlets in JSP.EL开发者_运维问答 is said to be scriptfree language


EL keeps the JSP free from errorprone raw Java code and forces you to write the JSP according the MVC ideology. Anything which isn't possible with EL (or taglibs like JSTL) would then technically and semantically belong in a real Java class. That's the most major advantage.


The advantages of using EL are:

  • readability
  • conceptual clarity - jsp is not meant to include any business logic, only presentation
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号