Avoid scriptlets.
See the paragraph "JSP Scriptlets" of the JSP code conventions.