i have set hashmap object using
session.setAttribute("bc",booksCollection); in one
servlet.
i am trying to access the bc in another servlet by using HashMap<
String,String> hm = (HashMap<String,String>) session.getAttribute("bc");
i get the type casting error saying: can't typecast from cbject to HashMap.
how do i get rid of this.