• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet - image loading from client cache  RSS feed

 
Rajesh Agarwal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody, I need to know how this can be implemented using Java.
Any help will be much appreciated.

I have a servlet which reads data from the DB. Assuming the fetch resulted in 100 rows, I need to display these 100 rows in the screen with each row having a small icon(image) for delete, update

Since 2 images for every row, means 100*2 = 200 images. I need to know if I can store the image in the clients cache and avoid uasge of network for image transfer. Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need to do anything - the browser will cache those automatically. And it's not going to be 200 images, it's just going to be 2 (one for update, one for delete). Or are you using different icons for each row?
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Ulf said , it will be done by the browser automatically.Moreover 200 different images doesnot make sense for only two operations.
 
Rajesh Agarwal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for that info folks.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!