% String imageName = website.getImagePath("ImageDefaultArticleThumb.jpg"); try { if (abBlobStorageId > 0) { int imageVaId = ((Integer)abRow.get(ArticleDetail.VENDOR_ARTICLE_ID)).intValue(); RenderImageServlet.buildImage(userSession, imageVaId, abShortDescription, abBlobStorageId, website.getStockThumbSize(), true, request); File cachedImage = new File(website.getWebSitePath()+website.getArticleMenu().getCachedImageName(abShortDescription,abBlobStorageId,website.getStockThumbSize())); if (cachedImage.exists()) imageName = website.getArticleMenu().getCachedImageName(abShortDescription,abBlobStorageId,website.getStockThumbSize()); } } catch (Exception e) { website.writeToLog(e); } %>