permaculture playing cards
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes how to use getLastModified() ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "how to use getLastModified() ?" Watch "how to use getLastModified() ?" New topic

how to use getLastModified() ?

hasan khan
Ranch Hand

Joined: Aug 04, 2003
Posts: 222

i have a servlet reading an image from different web site and writing back to ServletOutputStream

in this case how do i use getLastModified()

i know i have to call URLConnection.getLastModified(), but how and where to call this method ?
the simpler solution looks to me is to write getLastModified(HttpServletRequest) as follow

but i dont want to open connection twice
as there any other way without comprimising performance?
I agree. Here's the link:
subject: how to use getLastModified() ?
It's not a secret anymore!