String user_src=(String)session.getAttribute("user");
System.out.println(user_src);
why i got null on console?????

because that attribute doesn't exist in the session :)

Do you set tat attribute using setAttribute(var,varvalue); ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.