Mat Sergino

Greenhorn
+ Follow
since Dec 04, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mat Sergino

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?
13 years ago
JSF
Hello,

I would like to redirect ( on load page ) users on log-in-page when the are not logged in and when they try to access any of pages. When I type in url address of any of me pages I achieve access to resources without logging and this is the problem. I think I should check the session parameter from session bean on load page ... but I don't know how to do that ... Plase help!
13 years ago
JSF
Hello,

I have a problem with writing a code in JSF ... I would like to redirect users on one of my pages when the are not logged in.
To achieve it I made a page with:

loginBean - it's a session bean in my application

I've also written a getIfLogged method:


I receive the following exception when I try to execute the page:


Any suggestion?

[ December 04, 2008: Message edited by: Mat Sergino ]
[ December 04, 2008: Message edited by: Mat Sergino ]
13 years ago
JSF