This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL question

 
sawan parihar
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ritu varada
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sawan parihar
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks for your reply.
 
sundar katluri
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u r right ,page directive get prcedence

see errata here
 
sawan parihar
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Thanks for that.

Sawan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic