From: Eric B. R. <eb...@tc...> - 2003-06-13 17:37:03
|
On Friday, June 13, 2003, at 01:10 PM, Marc Palmer wrote: > On Fri, 13 Jun 2003 12:09:21 -0400, Keats <ke...@ea...> wrote: > >> Also the JavaDocs show as plain text in Mozilla. This must be a >> Tomcat >> thing, cause they look fine if I open them directly from the file >> system. > > Duh. Of course. I'm serving non-WM content too (i.e. the API docs) and > not setting content-type. > > Hmmm. Is there a nice way to get the default content-type for a file > extension from the Servlet API. I don't think there is... :( Yes, there is, from within your servlet: this.getServletContext().getMimeType(strFilename) However, I think strFilename needs to be in your document root somewhere. eric > > -- > Marc Palmer > Contract Java Consultant/Developer > > http://www.anyware.co.uk/marc/ > http://www.wangjammers.org > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: eBay > Great deals on office technology -- on eBay now! Click here: > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > Webmacro-devel mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-devel |