Closed Thread Icon

Topic awaiting preservation: JSP File Last Modified Pages that link to <a href="https://ozoneasylum.com/backlink?for=12165" title="Pages that link to Topic awaiting preservation: JSP File Last Modified" rel="nofollow" >Topic awaiting preservation: JSP File Last Modified\

 
Author Thread
WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 04-05-2002 20:47

Using JSP one might want to make a script that would automatically report when the file was last modified.

<% out.println(last_modified); %>

However, looking at both response and request I was unable to find an accessor to this information.

I thought that in request that I could find some sort of reference to a file so that I could use

String last_modified = (new File(response.getFile())).lastModified();

So that I could have code similar to:

<%
out.print((new File(response.getFile())).lastModified());
%>

I have not been able to find any code to this effect. Anyone have any ideas?

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 04-06-2002 06:25

Maybe this page can help you: http://www.orionserver.com/taglibtut/lesson8/


WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 04-06-2002 07:11

Thanks for the link Max.

« BackwardsOnwards »

Show Forum Drop Down Menu