• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL & Scripting Evaluation's

 
akshay pandit
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I'm on chapter 7, of HFSJ page number 322, which describes about when the EL and Scripting will be evaluated by the container and when it will not. I'm not able to understand few things which are as follows:

1) If el-ignored element in DD is set to false and isELIgnored attribute in page directive is unspecified , will EL be evaluated ?

2) If el-ignored element in DD is set to true and isELIgnored attribute in page directive is set to false, will EL be evaluated ? Answer in HFSJ say's that yes it would be evaluated.. but as per the understanding.. the page directive is given precedence over the element in DD. if that is true then the EL for that page should not be evaluated.


Thanks before hand...
 
Flom Xanther
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can override the settings of the DD within your page.

"isELIgnored" set to "true" then, EL IS IGNORED
"isELIgnored" set to "false" then, EL IS EVALUATED

Mfg,
Flo
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) el-ignored element in DD is set to false, meaning that EL will not be ignored.
So answer is true.


2) If el-ignored element in DD is set to true and isELIgnored attribute in page directive is set to false, will EL be evaluated ?

Answer in HFSJ say's that yes it would be evaluated.. but as per the understanding.. the page directive is given precedence over the element in DD.

You're right.

if that is true then the EL for that page should not be evaluated.

isELIgnored is set to false. So it will not be ignored, meaning that it will be evaluated.

Be careful that Ignored=false means "Not Ignored"="Evaluated"
 
akshay pandit
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Satou & Flom,


Thanks for the replies.. about the second question,



2) If el-ignored element in DD is set to true and isELIgnored attribute in page directive is set to false, will EL be evaluated ? Answer in HFSJ say's that yes it would be evaluated.. but as per the understanding.. the page directive is given precedence over the element in DD. if that is true then the EL for that page should not be evaluated.


We three agree that isELIgnored attribute of page directive only works for only that JSP where it is used.. but if the question asked generally, which is if they have not mentioned about the page etc.. then what should be the answer ?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're trying to make the question more complicated than it is
They are simply asking what happens if you set this attribute to false in a JSP page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic