Enabling Expression Language Evaluation in JSP

By: Abinaya Viewed: 153258 times  Printer Friendly Format    


To enable or disable the evaluation of the EL, you can use the <el-ignored> element. This can be used to easily set the isELIgnored property of a group of JSP pages. By default, the EL evaluation is enabled for web applications using a Servlet 2.4 or Servlet 2.5 web.xml. To disable evaluation for all the JSP pages in our application, you can use a fragment similar to the following:


<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>true</el-ignored>
</jsp-property-group
</jsp-config>
You can also disable the EL for specific pages by using a snippet such as the following:
<jsp-config>
<jsp-property-group>
<url-pattern>noel.jsp</url-pattern>
<el-ignored>true</el-ignored>
</jsp-property-group
</jsp-config>



Most Viewed Articles (in JSP )

Latest Articles (in JSP)

Comment on this tutorial