I am wondering on the fact that in the example given , 1st the request attrbute is been set ,then we are putting the values. So how can the request attribute contain Map with values instead of an empty Map.

My Friend , You are still setting the values to the reference to the Map Object which is in the request Object as attribute.So since you are having the reference to that map ,You can set it from anywhere.

Salim Khatib

Greenhorn

Posts: 23

posted 7 years ago

As we know that EL is about using attributes and implicit objects.
It has, no access to local variables , so before I use any local variable with EL
I have to make the local variable a attribute in any scope. Then only the EL will identify it

in your case "map" is a local variable so to work with EL , it should be made as attribute in any scope
thats the reason they have put it under request scope