I have a servlet which have these values and I want to pass these values to the java class in session attribute. How can I access these session attributes because I am not using JSF or Struts. This is simple Java Web application.
userID=map.get("UserID");
log.debug("The UserID in case of CCM authtication are : "+userID);
session.setAttribute("UserID", userID);
String refSys="";
refSys = map.get("refSystem");
log.debug("The refSystem in case of CCM authtication is: "+refSys);
session.setAttribute("refSystem", refSys);
This is how I am trying to get in the Java class and I am getting null in the Java class.
HttpSession session = null;
session.getAttribute("UserID");