I am developing a " LoggedInInterceptor" but problem with it is that when i
return the string it does not functon properly
Interceptor code is here:
----------------------------------
@Interceptor(around={BijectionInterceptor.class, ValidationInterceptor.class,
ConversationInterceptor.class, BusinessProcessInterceptor.class},
within=RemoveInterceptor.class)
public class LoggedInInterceptor{
@AroundInvoke
public Object checkLoggedIn(InvocationContext invocation) throws Exception{
System.out.println("LoggedInInterceptor...");
Method m=invocation.getMethod();
boolean isLoggedIn = Contexts.getSessionContext().get("loggedIn")!=null;
if (isLoggedIn){
return invocation.proceed();
}else{
return "loginpage";
}
}
}
when it return loginpage it seems that instead of going to login page it is trying to go
on the same page actionbean on which it was invoked...
navigation rule in faces-config.xml is
<navigation-rule>
<navigation-case>
<from-outcome>loginpage</from-outcome>
<to-view-id>/eregindex.jsp</to-view-id>
</navigation-case>
</navigation-rule>
any help plzzz
thanks in advance...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996386#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...