I have tow method and using Spring MVC, first is a method=RequestMethod.GET and there I set session.setAttribute("clientId", "abc"). Second method is a method=RequestMethod.POST where I do this:
HttpSession session = request.getSession();
System.out.println("-----" + (String)session.getAttribute("clientId"));
But always get null.
[Edit]
The thing here is the post method is not called by ModalandView("postpage"), its called by Http callout by Apache oltu internally