cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricardo Rocha" <rica...@apache.org>
Subject RE: bug in XSPUtils.java
Date Wed, 12 Jan 2000 22:49:13 GMT
> I found a bug in the requestRealPath() method in XSPUtils.java (the old
> Servlet API version issue),
> I think that implementation of XSPUtils.requestRealPath() method, must
> be the same as in ProduceFromFile.getBasename().
> I propose to add next static method in org.apache.cocoon.Utils class :
> public static String requestRealPath(
>     HttpServletRequest request,
>     ServletContext context
>   )
> {
>    // implementation like in ProduceFromFile.getBaseName()
> };
> >From now both XSPUtils.requestRealPath and ProduceFromFile.getBaseName
> will use this method.
> 
> Any ideas ?
> Zvi

+1, Zvi.

You're right. The current XSPUtil implementation
reinvents the wheel and doesn't even do it right.

Mime
View raw message