RE: Tomcat 4.1.12 Directory Listing

2003-01-13 Thread Venkateshwar Bommineni

 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:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomcat 4.1.12 Directory Listing

2003-01-10 Thread Venkateshwar Bommineni
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 Tomcats 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?

 thanks in advance..
--Venkat


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Directory Listing in Tomcat 4.1.12

2002-12-13 Thread Venkateshwar Bommineni
Hello All,
 I would like to use default tomcat directory listing functionality in
one of my application. And it works fine when I set the docBase to the
directory which i would like to see as listing. But that directory
consists of some symbolic links to the files which are outside of that
directory. And those also have same OS permissions.
 But tomcat unable to show those symbolic links. Is there any
attribute/flag needs to be set or thats the defined behaviour for
tomcat. Anybody have workaround for this?
 Also is it possible to configure default directory listing pagesm like
instead of showing GMT based timestamps for files, I would like to
display them in my own timestamp formats?

 thanks in advance..
--Venkat

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]