Why do scriptlets exist in JSP?

I've heard a billion times about how terrible it is to use scripts (those php-like <% %>

things) in JSPs.

  • Scriptlets have been proven to break code patterns and usually MVC pattern li>
  • Many J2EE frameworks (such as JSF 2.0+ ) have already disabled scripting.

Since scriptlets are not needed for any use and can be replaced by JSTL, other taglibs and EL (Expression Language), why are they still there? Why hasn't Oracle removed these scripts from JSP technology?

+3


source to share


1 answer


They still exist for backward compatibility.



+2


source







All Articles