0
this post에이어서 공유 자원으로 폴더에 이미지를 제공하고 싶습니다.디렉토리에서 이미지를 제공하는 개찰구
PageParameters params = new PageParameters();
//params.set(0,"pic1.jpg");
params.set("fileName","pic1.jpg");
add(new Image("image", new SharedResourceReference("images"),params));
params.set(0,"pic1.jpg")
로 PARAMS을 설정하는 방법 public void respond(Attributes attributes)
가 호출되지 않습니다 :
getSharedResources().add("images", new FolderContentResource(new File(this.getServletContext().getResource("/images").getFile())));
을 공유 자원에 액세스 할 수 있습니다. 키, 값을 통해 문자열 쌍으로 설정해야하는 이유는 무엇입니까?