Building JSF Scriplet-free Web Pages with Expression Language & JSTL Scriptlets (embedded Java code in JSP) are considered to be hazardous from a maintenance standpoint. Especially in JSF development, they should be dumped. The JSP 2.0 specification allows developers to explicitly ban the use of scriptlets by making the following declaration in web.xml:
Tag Archive: jsp scriptlet
Permanent link to this article: http://www.javaplex.com/blog/how-to-ban-jsp-scriptlet-in-jsf-facelet-application/