We are running a web application wherein I am setting an attribute in session on first
jsp page i.e session.setAttribute("homeFlag","YES");
Now when user migrates to second page I am checking if the session value is "YES" using following code in my Action class.
String homeFlag = (String)session.getAttribute("homeFlag");
System.out.println("homeFlag==="+homeFlag);
if(!homeFlag.equals("YES")){
mapping.findForward("homePage");
}
Its working well for around 90% Users but for remaining Users homeFlag value is always NULL.
Could you please help me in resolving this issue.
Thanks in Advance!