Subversion Repositories SmartDukaan

Rev

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

Rev 962 Rev 968
Line 136... Line 136...
136
			catalogServiceClient = new CatalogServiceClient();
136
			catalogServiceClient = new CatalogServiceClient();
137
			client = catalogServiceClient.getClient();
137
			client = catalogServiceClient.getClient();
138
			List<Long> items = client.getLatestArrivalsCatalogIds(1,4,-1);
138
			List<Long> items = client.getLatestArrivalsCatalogIds(1,4,-1);
139
			List<String> itemList = new ArrayList<String>();
139
			List<String> itemList = new ArrayList<String>();
140
			for(Long item: items){
140
			for(Long item: items){
-
 
141
				try{
141
				itemList.add(FileUtils.read( Utils.EXPORT_ENTITIES_PATH + item + File.separator +"HomeSnippet.html"));
142
					itemList.add(FileUtils.read( Utils.EXPORT_ENTITIES_PATH + item + File.separator +"HomeSnippet.html"));
-
 
143
				}catch(IOException ioex){
-
 
144
					ioex.printStackTrace();
-
 
145
				}
142
			}
146
			}
143
			context.put("itemList", itemList);
147
			context.put("itemList", itemList);
144
			
148
			
145
		} catch(Exception e){
149
		} catch(Exception e){
146
			
150
			e.printStackTrace();
147
		}finally{
151
		}finally{
148
			catalogServiceClient.closeConnection();
152
			catalogServiceClient.closeConnection();
149
		}
153
		}
150
		
154
		
151
		htmlString = getHtmlFromVelocity(templateFile, context);
155
		htmlString = getHtmlFromVelocity(templateFile, context);