Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to stop image being chached in browser in jsf

 
Mahendra Pratap
Ranch Hand
Posts: 42
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,

first of all Greetings for the day!

Actually my problem is i have a jsf page on which i am displaying an image and some other data, i have one edit button too.

If user click on edit he can change the data, that all is working fine, what exactly my problem is when user changes the image then the changed image is not getting displayed.

i am using tomahank's uploadedFile tag.

i think the previous image is getting cached in browser.

Any sort of help will be appreciated.


Regards,
Mahendra
 
Mahendra Pratap
Ranch Hand
Posts: 42
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using same name for the old and new image file. That's why browser is not displaying newly uploaded image. I am saving the image in a directory in HDD.


Regards,
Mahendra
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic