Bạn có thể sử dụng JSTL (JSP Standard Tag Library) hoặc EL (Expression Language) để tránh sử dụng scriptlet.