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?

[891 byte] By [just_a_kid83] at [2007-11-26 9:37:07]
# 1
i can do it now with prefix /AppContextPath/faces/index.jsp
just_a_kid83 at 2007-7-7 0:30:04 > top of Java-index,Development Tools,Java Tools...