Hi,
I am quite new to Java ... I wrote a class called DLPFile which is basically a container of other objects like Strings, ints, floats, etc.
When putting my files into a List and then saving it in my session (which is from Map class) variable is easy;
DLPFile file = new DLPFile();
List <DLPFile >fileList = new ArrayList <DLPFile>();
fileList.add(file);
session.put("filesList", fileList);
but how do I retrieve the list from the session var? When I do:
List <DLPFile files = (List) session.get("fileslist");
I got some warnings:
"List is a raw type.References to generic type List<E> should be parameterized."
I tried
List <DLPFile files = (List <DLPFile> ) session.get("fileslist");
List <DLPFile files = (List ) session.get("fileslist")<DLPFile>; and
List <DLPFile files = (List) <DLPFile> session.get("fileslist");
but none works
I suppose this is kind of a "casting" problem... (maybe?)
Thanks in advance ;)