File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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: http://aspose.com/file-tools
 
subject: how to use getLastModified() ?