The use of scriptlets (those <% %> things) in JSP is indeed highly discouraged since the birth of taglibs (like JSTL) and EL (Expression Language, those ${} things) over a…
Code Conventions for the JavaServer Pages Technology Version
1 Article
1