Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes Tomcat Directory Listing Order Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Directory Listing Order" Watch "Tomcat Directory Listing Order" New topic
Author

Tomcat Directory Listing Order

Jarin Letap
Greenhorn

Joined: Aug 22, 2007
Posts: 1
I am using Tomcat 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?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
 
subject: Tomcat Directory Listing Order