aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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() ?
 
Similar Threads
problem writing ImageServlet?
Servlet Not Responding
Sending A File From An Applet To A Servlet
how to send browser display HTML page as HTML Email using JSF
Replacing text in a stream