File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes how to stop image being chached in browser in jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "how to stop image being chached in browser in jsf" Watch "how to stop image being chached in browser in jsf" New topic
Author

how to stop image being chached in browser in jsf

Mahendra Pratap
Ranch Hand

Joined: Feb 25, 2008
Posts: 42

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
http://randomtechieblog.blogspot.com
Mahendra Pratap
Ranch Hand

Joined: Feb 25, 2008
Posts: 42

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to stop image being chached in browser in jsf
 
Similar Threads
how to retrieve image in jsp page from a seperate folder.
JSF Beginner
unable to see the image
image in JSP page
JSF and database transactions