Subversion Repositories SmartDukaan

Rev

Rev 1081 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1081 Rev 1152
Line 20... Line 20...
20
        HttpSession session = request.getSession(); // Get the existing session or create a new one
20
        HttpSession session = request.getSession(); // Get the existing session or create a new one
21
        
21
        
22
    	String username = (String) session.getAttribute(LoginInterceptor.USER_NAME);
22
    	String username = (String) session.getAttribute(LoginInterceptor.USER_NAME);
23
    	
23
    	
24
        if(username == null){
24
        if(username == null){
25
        	response.sendRedirect("login");
25
        	response.sendRedirect("/content/login");
26
        	return null;
26
        	return null;
27
     	}
27
     	}
28
		return invocation.invoke();
28
		return invocation.invoke();
29
	}
29
	}
30
}
30
}