posted 17 years ago
${requestScope.attr[0]} and ${requestScope["attr"][0]} both will evaluate to ${num[0]} and will print "11". Yes you can use ${attr[0]} directly and the output will be same but you can't use ${num[0]} because the EL searches the used attribute in different scopes starting from page then request,session and application, so "attr" will be found in request scope whereas there is no attribute in any scope by the name of "num".