File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Displaying image in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Displaying image in struts" Watch "Displaying image in struts" New topic

Displaying image in struts

win llen

Joined: Aug 18, 2010
Posts: 18
Hi All,

I have a program that would copy images to the Resources/images folder of the server and display it in the jsp page. I used DownloadAction to display the images following this link webpage

My problem now is that the images will not be reflected in the folder until I manually refresh the folder. Copying of image works fine but my jsp cant display it because it is not reflected in the resources/images folder.

When i open the folder from windows explorer the images are there. but they are not present in the Projects window of netbeans until I refresh the folder manually.

Anyone could help?

Ankit Garg

Joined: Aug 03, 2008
Posts: 9462

I'm a little confused here. Whether Netbeans displays a file or not should not effect displaying of the file in the JSP. Where are you actually copying the files?? Is it in the project folder of Netbeans or in the folder which is actually deployed on the server (like in Netbeans the build folder in the project structure is deployed on the server)??

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: Displaying image in struts
It's not a secret anymore!