File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Tomcat Directory Listing Order
Joined: Aug 22, 2007
Mar 27, 2008 11:54:00
I am using
to allow users to browse directories on a server. I have it setup currently and all is fine.
Although the default sort method on the files is by 'Last Modified' and ASC, which means users need to scroll all the way to the bottom.
Is there a way I can override the default sorting method for directory listings?
Joined: Dec 11, 2004
Mar 27, 2008 12:27:00
I don't think there is.
I know there is a setting to disable directory listing in tomcat/conf/web.xml under the DefaultServlet entry.
Tomcat is open source so you can always look at the source for DefaultServlet.
How to ask a question...
Simple Servlet Examples
I agree. Here's the link:
subject: Tomcat Directory Listing Order
J2EE RI for a Mac
Sorting directory listings
tomcat in win98 and winNT/2000
how to upload a image in particulart directory in web app. server
Tomcat 5.5 logging internal process in tomcat_out.log
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015