tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Venkateshwar Bommineni" <vbommin...@elogex.com>
Subject RE: Tomcat 4.1.12 Directory Listing
Date Mon, 13 Jan 2003 14:37:11 GMT

> I would like to use default tomcat directory listing functionality in
> one of my application. Following is the context added to server.xml
> configuration.
> 
>        <Context className="org.apache.catalina.core.StandardContext"
> path="/directory" docBase="C:\application\data" debug="0">
>         	<Resources
> className="org.apache.naming.resources.FileDirContext"
> allowLinking="true" caseSensitive="false" />
>         </Context>
> 
> 1). This works fine on UNIX based systems but on Win2K box its causing
> this error at tomcat startup time:
> "java.lang.reflect.InvocationTargetException:
> java.lang.IllegalArgumentException: Document base
> ..\C:\application\data does not exist or is not a readable directory"
> What could be the reason and is there any magic flag need to be set?
> 
> 2). Is it possible to configure default Tomcat' s directory listing
> functionality to extend like to show our own file timestamps, images
> etc. I noticed that this whole default directory listing
> implementation is hard coded in the
> "org/apache/catalina/servlets/DefaultServlet.java" class. So is it
> advisable to extend this servlet class or some other tomcat source
> code? what's the other options I can look for?
> 
	Pl somebody help me. thanks in advance..
> --Venkat
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message