• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL enabling/disabling :( confusing

 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I know, by default, EL is enabled. So its safe to assume these things -

1.the <el-ignored> D.D tag will have default valuew false
2.the ieElIgnored attribute of the page directive will have value
false

So, in light of above assumptions, referrng to GFSJ page 325 exercise, dont you think that the TICK mark should be in the last coloumn of row 3 ?
this is because, sine the directive always wins row 3 is effectively saying

el-ignored = true in D.D. and
isELIgnored = false ( unspecified means false as per point 2 above)

so the TICK mark must be in coloumn no 3 and not 4, i.e EL is evaluated in coloumn row 3.

Please let me know if i am missing something
thanks in advance !!!
 
Nilesh Raje
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Niranjan are you from Pune? I am also preparing for SCWCD...! would like to share stuff available....! Please mail me on itfreind@yahoo.com

Regards,
Nilesh
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can some one help me out ???
 
Srikanth Raghavan
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Niranjan,

There's a lot of difference between unspecified and false. If you understand this difference, it's pretty much simpler. This is where you went wrong.

By default, EL-Ignored is false. What does that mean? If you don't say anything anywhere (in DD or in page directive) it is false (which means el expressions are evaluated). But if you have explicitly specified it in one of two the places, that's when the game of precedence starts. Getting me??? Follow....

In row no: 3, it is as follows:
<el-ignored> = true (for all the JSPs)
isELIgnored = unspecified

The above scenario means that by default EL is ignored for all JSPs, but individual JSP may wish to override the default but if they don't what specified in DD is what they get... Go now???

So, a simple mathematical formula for ya....

unspecified + unspecified = false
boolean + unspecified = boolean
boolean + boolean = precedence order

Hope this helps,
Srikanth
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks srikanth

i will analye your query when i will go back to pune ( my work place )
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot for you great great mathematical formula.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic