Subversion Repositories SmartDukaan

Rev

Rev 7113 | Rev 7115 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7113 Rev 7114
Line 79... Line 79...
79
        
79
        
80
        String loginStatus = (String) request.getSession().getAttribute("LOGGED_IN");
80
        String loginStatus = (String) request.getSession().getAttribute("LOGGED_IN");
81
        if(loginStatus != null && loginStatus.equals("TRUE")){
81
        if(loginStatus != null && loginStatus.equals("TRUE")){
82
        	storeId = Long.parseLong((String) request.getSession().getAttribute("storeid"));
82
        	storeId = Long.parseLong((String) request.getSession().getAttribute("storeid"));
83
        	if(!hotspotStores.containsKey(storeId)){
83
        	if(!hotspotStores.containsKey(storeId)){
-
 
84
        		try{
84
        		HotspotStore hotSpotStore = (new TransactionClient()).getClient().getHotspotStore(storeId, "");
85
        			HotspotStore hotSpotStore = (new TransactionClient()).getClient().getHotspotStore(storeId, "");
85
        		hotspotStores.put(storeId, hotSpotStore);
86
        			hotspotStores.put(storeId, hotSpotStore);
-
 
87
        		} catch (Exception e) {
-
 
88
                    log.error("Unable to get store", e);
-
 
89
                }
86
        	}
90
        	}
87
            return "index";
91
            return "index";
88
        }
92
        }
89
        return "authfail";
93
        return "authfail";
90
    }
94
    }