Another Redirecting Problem
Hi Guys,
I was confusing how to redirect the page to index.jsp if user not logged on.
okay
SessionBean session= getSessionBean();
if(session.getUserId()==null || session.getUserId().equals("")){
logger.info("=====Redirectinnnggggggggg");
this.getExternalContext().redirect("index.jsp");
}
Basically the above method will work if i put in every page level...
But then once i shift this out to RequestBean init() method i doesnt work and keep throwing me Exception ( NullPointer)
Any idea? as i dont want to use filter and so on.
Secondly , which method should i call to know from which URL the Request coming in in JSF?

