So what i'm doing in my application .... in one of my method which is executing during authentication process I set the login attribute by:
public void setSession(){
// Set session Object in Session
FacesContext context = FacesContext.getCurrentInstance();
HttpServletRequest request = (HttpServletRequest)context.getExternalContext().getRequest();
HttpSession httpSession = request.getSession(false);
httpSession.setAttribute("login", this.login);
}
After the authentication process the user can see some links on his page. When the user clicks on one of the links I redirect him the Brit report by url:
http://"+"ip_addr"+":8080/Files/frameset?__report="+report.reportPath
In the report before executing I try to access the attribute I set before by using the code:
var request = reportContext.getHttpServletRequest();
var login = request.getSession().getAttribute("login");
After that I receive null login variable.
I've deployed my application and the runtime Birt engine on
Tomcat, and, as I described, I execute Birt reports from my application by url. Is it possible to access the session attribute from another instance of application on tomcat?