Subversion Repositories SmartDukaan

Rev

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

Rev 650 Rev 773
Line 59... Line 59...
59
		htmlSnippets.put("REVIEWS", pageLoader.getReviewsHtml(productId));
59
		htmlSnippets.put("REVIEWS", pageLoader.getReviewsHtml(productId));
60
	
60
	
61
		try {
61
		try {
62
			UserContextServiceClient userServiceClient = new UserContextServiceClient();
62
			UserContextServiceClient userServiceClient = new UserContextServiceClient();
63
			Client client = userServiceClient.getClient();
63
			Client client = userServiceClient.getClient();
64
			long item_id = Long.parseLong(id);
64
			long itemId = Long.parseLong(id);
65
			boolean isSessionId = userinfo.isSessionId();
-
 
66
			long user_id = userinfo.getUserId();
65
			long userId = userinfo.getUserId();
67
			client.updateBrowseHistory(user_id, item_id, isSessionId);
66
			client.updateBrowseHistory(userId, itemId);
68
		
67
		
69
		} catch (Exception e) {
68
		} catch (Exception e) {
70
			// TODO Auto-generated catch block
69
			// TODO Auto-generated catch block
71
			e.printStackTrace();
70
			e.printStackTrace();
72
		}
71
		}