I've never done much nesting of java code directly into JSPs
Now isn't the best time to start, in my opinion.
But... it looks like the error you are getting may be because your JSP container is not using a Java 1.5 compiler and is choking on the generic notation.
But there's another "but"... even if that was working, you've got a serious misconception. The variable
list is a
scripting variable, which you then try to reference using the EL. No can do. The EL and Java scriplets on the page live on separate planes of existance (one reason to avoid starting to put Java on your pages).
The EL is used in conjunction with
scoped variables; what you probably currently think of as page/request/session/application attributes.
[ October 15, 2005: Message edited by: Bear Bibeault ]