• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EL & Scripting Evaluation's

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic