Programming Tutorials

Enabling Expression Language Evaluation in JSP

By: Abinaya in JSP Tutorials on 2007-10-04  

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>





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in JSP )

Latest Articles (in JSP)