Home Tutorial Jsp Page Directive attribute - isELIgnored


Share on Google+Share on Google+
Page Directive attribute - isELIgnored
Posted on: November 30, 2012 at 12:00 AM
This tutorial contains description of isELIgnored attribute of page Directive.

Page Directive attribute - isELIgnored

This tutorial contains description of isELIgnored attribute of page Directive.

isELIgnored Attribute :

page directive provides isELIgnored attribute which is of boolean type. This attribute controls the JSP Expression Language. The cause to use Expression Language is to eliminate java, Code from the Jsp. The true value of this attribute indicates that any Expression Language is ignored. False value allow you to use the EL.
For JSP 1.2 version the default value of isELIgnored is true but for JSP 2.0 version and above the default value is false.

Syntax :

<%@ page isELIgnored="false" %> <!-- default value for JSP 2.0 -->

<%@ page isELIgnored="true" %> <!-- default value for JSP 1.2 -->

Example :

<%@page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<title>Tag Example</title>
<font color="blue" size="5"> 
<c:set var="name1" value="Rose"></c:set>
<c:set var="name2" value="India"></c:set> <c:choose>
<c:when test="${name1 eq 'Rose'}">
<c:set var="name" value="${name1}${name2}" />
<c:out value="${name}"></c:out>


Output : Here is output of the code-

If you assign value "false" to isELIgnored attribute you will get output -

If you put value "true" for isELIgnored attribut you will get output -


Related Tags for Page Directive attribute - isELIgnored:

Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 30, 2012

Recommend the tutorial

Advertisements Advertisements