reset password
Author Message
mnava18
Posts: 86
Posted 12:47 Dec 11, 2015 |

this is for cervantes cs 320 , anyone remember that question he asked us about using an EL with like 3 different scopes and all of them have the same variable , which one take presidence? i cant find the answer to this , i looked like 4 videos and notes. its driving me crazy lol

dbravoru
Posts: 60
Posted 13:02 Dec 11, 2015 |
if i had to guess, the more specific would be called first, then more and more general.
dbravoru
Posts: 60
Posted 13:07 Dec 11, 2015 |
I'm basing this on methods in java, local variables first,then global variables. although it might be completely different in EL hahaha
mnava18
Posts: 86
Posted 13:14 Dec 11, 2015 |

yeah just found it finally, it is the most specific which is request.

khanglam314
Posts: 25
Posted 18:14 Dec 11, 2015 |

it's request, you are right, except there is a pageContext so the page should be first

Last edited by khanglam314 at 18:15 Dec 11, 2015.
mnava18
Posts: 86
Posted 18:26 Dec 11, 2015 |
khanglam314 wrote:

it's request, you are right, except there is a pageContext so the page should be first

aaah, alright so its. pageContext,then request, then session , then application right?