Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 70657 invoked from network); 28 Mar 2000 21:40:27 -0000 Received: from pop.systemy.it (194.20.140.28) by locus.apache.org with SMTP; 28 Mar 2000 21:40:27 -0000 Received: from apache.org (pv36-pri.systemy.it [194.21.255.36]) by pop.systemy.it (8.8.8/8.8.3) with ESMTP id XAA26033 for ; Tue, 28 Mar 2000 23:40:24 +0200 Message-ID: <38E126A0.70514BB6@apache.org> Date: Tue, 28 Mar 2000 23:39:44 +0200 From: Stefano Mazzocchi Organization: Apache Software Foundation X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: it,en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: Utils.getBasename hack References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Paul Lamb wrote: > > Here's the complete hack I came up with for getBasename. And this is really > a hack. It really begs to be changed to use getResource, but that requires > changes in several other places. If I can free up some time this week I'll > see if I can tackle that. keep in mind that we must still run on a 2.0 servlet engine. > Since context.getRealPath is a 2.1 function couldn't the entire thing be > condensed down to using it? what do you mean? > public static String getBasename(HttpServletRequest request, Object > context) { guys, should I add this in the CVS? are there possible back incompatible behaviors? -- Stefano Mazzocchi One must still have chaos in oneself to be able to give birth to a dancing star. Friedrich Nietzsche -------------------------------------------------------------------- Missed us in Orlando? Make it up with ApacheCON Europe in London! ------------------------- http://ApacheCon.Com ---------------------