I am using ajax to set some value based on the selection of some other value. I am able to get the response properly. But before giving the response the browser alerts a message:- "This page is trying to access information that is not under its control. This poses a security risk. Do you wish to continue." How can i avoid this meaasage. Also i get NulPointer exception when i try to use the Session attributes through ajax request. My HttpSession object is not returning null. Only session.getAtribute("myattribute") gives exception.