wood burning stoves 2.0*
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Displaying image in struts" Watch "Displaying image in struts" New topic
Author

Displaying image in struts

win llen
Greenhorn

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?


Thanks.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

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
 
jQuery in Action, 2nd edition
 
subject: Displaying image in struts