Subversion Repositories SmartDukaan

Rev

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

Rev 1364 Rev 1511
Line 69... Line 69...
69
		htmlSnippets.put("SLIDE_GUIDE", pageLoader.getSlideGuideHtml(productId));
69
		htmlSnippets.put("SLIDE_GUIDE", pageLoader.getSlideGuideHtml(productId));
70
		htmlSnippets.put("PAGE_TITLE", pageTitle.trim());
70
		htmlSnippets.put("PAGE_TITLE", pageTitle.trim());
71
		htmlSnippets.put("PAGE_METADESC", pageLoader.getPageMetaDescriptionHtml(productId).trim());
71
		htmlSnippets.put("PAGE_METADESC", pageLoader.getPageMetaDescriptionHtml(productId).trim());
72
		htmlSnippets.put("PAGE_METAKEYWORDS", pageLoader.getPageMetaKeywordsHtml(productId).trim());
72
		htmlSnippets.put("PAGE_METAKEYWORDS", pageLoader.getPageMetaKeywordsHtml(productId).trim());
73
	
73
	
74
		System.out.println(htmlSnippets.get("ROOT_URL"));
-
 
75
		try {
74
		try {
76
			UserContextServiceClient userServiceClient = new UserContextServiceClient();
75
			UserContextServiceClient userServiceClient = new UserContextServiceClient();
77
			Client client = userServiceClient.getClient();
76
			Client client = userServiceClient.getClient();
78
			long itemId = Long.parseLong(id);
77
			long itemId = Long.parseLong(id);
79
			long userId = userinfo.getUserId();
78
			long userId = userinfo.getUserId();
-
 
79
			if(userId != -1){
80
			client.updateBrowseHistory(userId, itemId);
80
				client.updateBrowseHistory(userId, itemId);
-
 
81
			}
81
		
82
		
82
		} catch (Exception e) {
83
		} catch (Exception e) {
83
			// TODO Auto-generated catch block
84
			// TODO Auto-generated catch block
84
			e.printStackTrace();
85
			e.printStackTrace();
85
		}
86
		}