Hi, On page 336 H&F it says that the page directive will only turn off the EL if the DD declares a <el-ignored>true</el-ignored> element with a url pattern that inclues this JSP.
But i think page directive take precedence over the DD tag. Can anyone help me understand this.
Thanks in advance.
Sawan<br />SCJP,SCWCD,SCBCD<br /> <br />Every exit is an entry somewhere.
Joined: Sep 08, 2004
For example, consider this web.xml file. <jsp-property-group> <url-pattern>*.jsp</url-pattern> <el-ignored>false</el-ignored> </jsp-property-group>
This means that EL is not ignored for any jsp pages because of the wildcard pattern. But in an individual jsp,I can have this directive, <%@ page isELIgnored="true" %>. For that particular jsp where the page directive is used, the EL is turned off becuase the page directive takes precedence over the DD declaration. Hope this helps.
Joined: Aug 24, 2004
I think my question was not clear. Suppose i haven't specified anything in the DD , that means the el will be evaluated (default behaviou). But if in my jsp i use the page directive to set el evaluation to 'FALSE' that means that for this jsp EL won't be evaluated.
That means On page 336 the answer of this question is wrong.