hi in book they say that c:set var is for bean and maps and that it have to take string. Thats ok. but they say to that c:set target os for lists and arrays???
so in my jsp i made <% String[] language={"asp","jsp","php"}; %> and then <c:set target="${language}" property="0" value="aspNet"/> but it does not work. Anyone knows how to access array index via c:set target?
tnx, ok i got that, but then is a tipo in a book they say (page446) c:set var is for bean and maps and thet c:set target is for lists and arrays [ September 23, 2005: Message edited by: Ner min ]
Hey Ner, <c:set> with target attribute is for map or bean. If the el given for the target attribute returns anything other than a bean or a map, the container throws an exception. <c:set> with var attribute is for setting a new value or updating the value for an existing attribute in any scope.
No where is the context of a list or an array coming into picture.
Correct me if I am wrong!! Srini
SCJP, SCWCD, SCBCD (EJB 2.x and EJB 3), OCA, SCDJWS
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.