使用JSP

时间:2017-08-10 04:12:11

标签: jsp

这是我的代码,其中打印了我准备的所有图像列表。并在控制台中显示它。问题是我不知道如何应用我的每个语句,以便通过JSP打印出来。有人可以帮我吗?

这是我的代码:

    ThemeDisplay themeDisplay = (ThemeDisplay) renderRequest.getAttribute(WebKeys.THEME_DISPLAY);
    System.out.println("****************************hi: ");
    QueryDefinition queryDefinition = new QueryDefinition(WorkflowConstants.STATUS_ANY, QueryUtil.ALL_POS,
            QueryUtil.ALL_POS, null);
    System.out.println("****************************here: ");
    String imgIdStr = this.getWebContent(config.getImageCarousel(), themeDisplayObject, true);
    Long imgId = Long.parseLong(imgIdStr);
    List<Object> list = DLFolderLocalServiceUtil.getFoldersAndFileEntriesAndFileShortcuts(
            themeDisplay.getSiteGroupId(), imgId, null, true, queryDefinition);
    System.out.println("list: " + list);
    List<String> carouselImages = new ArrayList<String>();
    for (Object fileNameImage: list) { 
        DLFileEntry fileEntry = (DLFileEntry) fileNameImage;
       System.out.println("File: " + fileEntry.getFileName());

       System.out.println("Path: " + "/documents/" + fileEntry.getRepositoryId() + "/" + fileEntry.getFolderId() + "/" +  fileEntry.getFileName());
       String imagePath= "/documents/" + fileEntry.getRepositoryId() + "/" + fileEntry.getFolderId() + "/" +  fileEntry.getFileName();
       System.out.println("Hey: " + imagePath);
       carouselImages.add(imagePath);
    }
    System.out.println("List of images: " + carouselImages);

任何人都可以帮助我解决每个语句或许使用JSP吗?非常感谢你提前

0 个答案:

没有答案