"c:set target" but no scope?

is it true that when using "c:set target" there is no scope attribute? if i have <% request.setAttribute("mymap", new java.util.HashMap()); page.setAttribute("mymap", new java.util.HashMap()); %> <c:set target="${mymap}" property="surname" value="145"/> this always sets the mymap in page Scope if i try <c:set target="${mymap}" property="surname" value="145" scope="request"/> i allways getting an error: Illegal scope attribute without var in "c:set" tag. how can i differentiate the scopes when using "c:set target" ? [ September 29, 2005: Message edited by: Ner min ]

Ner min
Ranch Hand

Joined: Sep 14, 2005
Posts: 76

posted Sep 29, 2005 06:34:00

0

he he, i got it. it is simple: <c:set target="${requestScope.mymap}" property="surname" value="145"/>