Re: Using server Web.xml Mime Types Data

2016-09-08 Thread Mark Thomas
On 8 September 2016 17:06:13 BST, George Sexton wrote: > > >On 9/7/2016 11:44 AM, Mark Thomas wrote: >> On 07/09/2016 00:58, George Sexton wrote: >>> Is there any easy way that I can use the mime types in the Tomcat >server >>> level web.xml file? >>> >>> I know I can

Re: Using server Web.xml Mime Types Data

2016-09-08 Thread George Sexton
On 9/7/2016 11:44 AM, Mark Thomas wrote: On 07/09/2016 00:58, George Sexton wrote: Is there any easy way that I can use the mime types in the Tomcat server level web.xml file? I know I can parse the XML myself, I was just wondering if there's a way to get the data already defined.

Re: Using server Web.xml Mime Types Data

2016-09-07 Thread Mark Thomas
On 07/09/2016 00:58, George Sexton wrote: > Is there any easy way that I can use the mime types in the Tomcat server > level web.xml file? > > I know I can parse the XML myself, I was just wondering if there's a way > to get the data already defined. ServletContext.getMimeType(String filename) ?

RE: Using server Web.xml Mime Types Data

2016-09-07 Thread Jeffrey Janner
George, As I recall, anything in the server's web.xml is merged with the application's web.xml unless overridden by the applications own settings, i.e. if not defined in the app web.xml file. Was there something specific you were asking that didn't come across in your question? Jeff >