Alexander Sales wrote:Is it really prohibited to use scriptlets? aren't there any times that we have no other choice but to use a scriptlet?
Scriptlets are
never necessary, and should
never be used in modern JSPs. They have been discredited for almost 10 years now and using them is simply irresponsible at this point.
If there's something that you are doing in your JSP that cannot be done with modern techniques, it's a huge red flag that you are trying to do something that should
not be done in a JSP at all, but likely in the page controller.