Why Not Use Scriptlets (Wiki forum at Coderanch) (original) (raw)

JSP 2.0 was introduced in 2002 with the JSTL and EL intended to replace Java scriptlets in JSP pages. 2002! In 2017, that is over 15 years ago! If you are still using scriptlets in JSPs, you are 15 years behind the times.

15 years!

Java scriptlets have been obsolete and discredited since the introduction of JSP 2.0 and there are many good reasons not to use Java scriptlets in JSPs including:

Due to the above, a developer using scriptlets is a clear warning sign that a developer:

Do you want this to be you?

This Javaranch Journal article explains the evolution of modern best practices with regards to web application structure.


JspFaq