Originally posted by Prabhu Venkatachalam: Any setAttribute method will accept two parameters. both are of type Object.
But you are passing only one parameter. Make it two(both should of type Object).
Not entirely true. The setAttribute method does take two arguments but the first is java.lang.String. See: java.lang.String,%20java.lang.Object)" target="_blank" rel="nofollow">http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSession.html#setAttribute(java.lang.String,%20java.lang.Object)