Works fine...thanks ! Oliver > AXA eSolutions GmbH > AXA Konzern AG Germany > Oliver Lauer > Web Architect > W�rthstra�e 34 > D-50668 K�ln > Germany > Tel.: +49 221 148 31277 > Fax: +49 221 148 43963 > Mobil: +49 179 59 064 59 > e-Mail: [EMAIL PROTECTED] > _____________________________ >
-----Urspr�ngliche Nachricht----- Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 28. Februar 2002 18:15 An: Tomcat Users List Betreff: AW: XSL - Reload a resource without restarting I thought that the problem was, how to handle the change not how to recognize it. If the xsl is just file and you know where it is, what about this: long mLastLoad = 0; File mXSLFile = new File(<path-to-file>); if (mXSLFile.lastModified() > mLastLoad) { doWhatEverToReRead(); mLastLoad = (new Date()).getTime(); } P.S.: I still beg that the real problem lies in doWhatEverToReRead() > -----Urspr�ngliche Nachricht----- > Von: Lauer, Oliver [mailto:[EMAIL PROTECTED]] > Gesendet: Donnerstag, 28. Februar 2002 18:01 > An: 'Tomcat Users List' > Betreff: AW: XSL - Reload a resource without restarting > I'm going to try it. Thanks ! > > -----Urspr�ngliche Nachricht----- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Gesendet: Donnerstag, 28. Februar 2002 17:51 > An: Tomcat Users List > Betreff: Re: XSL - Reload a resource without restarting <snip/> > If you do a getResource from the ServletContext, it will give you a > java.net.URL. Then, maybe you could do an openConnection on > the URL to get a URLConnection. Then, try the getLastModified method on > that... Don't know if this will work, but figured I'd throw it out there > as a suggestion. <snip/> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> ------------------------------------------------------------------------------ Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. ---------------------------- For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. ============================================================================== -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
