• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Problem in accessing dynamically created image in <img src=""> tag

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using Tomcat5.5 and Struts2.
I am creating a image in my action class and i am storing it on my machine's disk giving the absolute path of the project.
After its success i am redirecting to the jsp page where in i want to display this image.
I am using <img src=""> tag in jsp to do this. In src attribute i am giving a relative path of the image to access.

Now the problem is - it is not taking the image from this relative path until and unless I refresh the folder structure in eclipse.
The image file exists on the disk but until i refresh the project from eclipse manually, the image is not getting displayed.

Is this a container (Tomcat) problem or something else?

Please provide me some solution on the same.


Thanks,
Sunny
 
author & internet detective
Posts: 42016
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sunny,
What directory is the image in? Could it be in a "source" directory that Eclipse is copying elsewhere upon refresh?
 
A timing clock, fuse wire, high explosives and a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic