[jboss-user] [JBoss Seam] - Re: how to force Logging for page access ??

waheed.murad do-not-reply at jboss.com
Thu Dec 28 10:11:12 EST 2006


thanks norman richards for help
i have tried the same thing as told by u but it has some problem

This is my entry in the page.xml
<page view-id="/secretquestions.jsp" action="#{SecretQuestionsAction.checkLoggedIn}" />

here is my checkLoggedIn function... 

public String checkLoggedIn(){
	boolean isLoggedIn = sessionContext.get("loggedIn")!=null;
	   
         if (isLoggedIn){
            return null;  // Go to secretquestions.jsp.
         }else{
            return "loginpage"; // go to login page.
         }
}

when it returns null it does not open secretquestions.jsp it opens the login page.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996649#3996649

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996649



More information about the jboss-user mailing list