You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Bentley, Tim" <TI...@ca.com> on 2001/09/07 07:30:34 UTC

RE: Doesn't anyone know how to get the date of a requested XML-Fi le ?

Christopher -

The way I do this is to work out the absolute path for the page (not always
reliable, depending upon your servlet environment), and then use the Java
File methods to get the last modified date.  I don't have sample code to
hand, but it's fairly straightforward once you get the path - consult a good
servlet reference for that.


Regards,


Tim bentley

> -----Original Message-----
> From: Christofer Dutz [mailto:christofer.dutz@danet.de]
> Sent: Wednesday, 5 September 2001 11:46 PM
> To: cocoon-users@xml.apache.org
> Subject: Doesn't anyone know how to get the date of a 
> requested XML-File
> ?
> 
> 
> Hi again,
> 
> sorry for posting this thing over and over again, but I 
> simply never get a
> reply.
> 
> I want to automaticaly display the date a requested XML-File that was
> requested was last modified. I think this type of action 
> should occur quite
> frequently, so I hope one of you has an Idea how to access 
> this parameter.
> 
> This is how a page is called :
> 
> XML( can containin XSP-Code but no XSP-PI ) -> XSL -> XML ( 
> containing Code
> from original XML and XSL and XSP-PI ) -> XSL -> HTML-Output
> 
> Plese help me. I'm sort of desperate.
> 
> Thanx in adveance,
>     Christofer Dutz
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
> 

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>