On Wed, 29 Nov 2000, Rafal Krzewski wrote:

> Leon Messerschmidt wrote:
> > 
> > Hi,
> > 
> > At the risk of sounding stupid: Does anybody know of compile errors in the
> > main Turbine cvs?  There are errors in ImageURI and TurbineConfig.
> 
> Those are Servlet API compatibility problems. The offending methods
> are not present in version 2.0.
> 
> The error in ImageURI is easy to fix (see DynamicURI class), but 
> I don't like the idea of ImageURI at all. It has static path 
> stuck in the code. Bad idea. I believe that it should be replaced
> with StaticLink class that was discussed on the list a few times.

No problem, the class should probably be renamed as it can
be used for content other then items, how about:

ContentURI

and

used as $content.getURI("image.jpg")

in the context?
 
> The other error is harder to fix - the definition on ServletContext
> interface changed in an incompatible way between the two versions.
> I don't know how to make the class compile for both versions :-(.
> 
> Rafal
> 
> >     [javac]
> > D:\apps\turbine\bin\src\org\apache\turbine\util\ImageURI.java:87: Me
> > thod getContextPath() not found in interface
> > javax.servlet.http.HttpServletReque
> > st.
> >     [javac]         contextpath = data.getRequest().getContextPath();
> >     [javac]                                                       ^
> >     [javac]
> > D:\apps\turbine\bin\src\org\apache\turbine\util\TurbineConfig.java:3
> > 40: Class org.apache.turbine.util.RequestDispatcher not found.
> >     [javac]     public RequestDispatcher getNamedDispatcher( String s)
> >     [javac]                              ^
> >     [javac]
> > D:\apps\turbine\bin\src\org\apache\turbine\util\TurbineConfig.java:3
> > 52: Class org.apache.turbine.util.RequestDispatcher not found.
> >     [javac]     public RequestDispatcher getRequestDispatcher( String s )
> >     [javac]                              ^
> 
> --
> Rafal Krzewski
> Senior Internet Developer
> mailto:[EMAIL PROTECTED]
> +48 22 8534830 http://e-point.pl
> 
> 
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
> 
> 



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to