> 1.  java.io.File.lastModified() already returns a long.
>     Why are you dividing and multiplying by 1000L?

Just a hack for some oddity where some client worked better if I discarded
the milliseconds portion of the value (while preserving the magnitude).
When I searched the web, I found that Stuart MaClean from Univ. of Wash. had
done something similar.  YMMV.

> It looks to me like your "getLastModified()" method is returning the last
time this very jsp was edited.

Exactly.  If you don't want Conditional Get behavior, don't extend this
class at all!  Or if you do want Conditional Get behavior, but with a
different last modified value, then declare the latter in your page.

Glad that you found the post interesting.  If anyone decides to actually use
the code, I'd certainly appreciate hearing about it.

        --- Noel


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to