cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <>
Subject Re: Utils.getBasename hack
Date Tue, 28 Mar 2000 21:39:44 GMT
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

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 ---------------------

View raw message