Problem with getting generics working in JSP
In my Servlet I have some generics in my code
ArrayList<MyObject> list = (ArrayList<MyObject>) obj.getSomeObject();
request.getSession.setAttribute("list", list);
But when I try the following in a JSP
Object obj = request.getSession.getAttribute("list");
ArrayList<MyObject> list = (ArrayList<MyObject>) obj;
I get the following warning in Eclipse: "Type safety: The Cast from Object to ArrayList<MyObject> is actually checking against the erased type ArrayList"
This is just a warning, but my webapplication runs with an exception on the JSP page. If I remove the generics from the JSP it works fine. Can I use generics in JSP?

