I have a download servlet that I am working with (actually BalusC's servlet code that I have modified/broken). When I go to get the mime type of the file that I am sending by :
String contentType = getServletContext().getMimeType(file.getName());
I get this error.
java.lang.IllegalStateException: ServletConfig has not been initialized
I am overriding the init function so that I can pool database connections and load the root location of the downloadable files if that helps any.
Thanks ,
Chem E