Re: Using server Web.xml Mime Types Data
On 8 September 2016 17:06:13 BST, George Sextonwrote: > > >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. >> ServletContext.getMimeType(String filename) ? > >Thanks for the tip. I honestly did search for some solutions before >posting. I feel like a fool now. :( I wouldn't. Not asking the question would have been the foolish thing to do. If it makes you feel better, I had to look at how the Default servlet did it to be sure I had the right method. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Using server Web.xml Mime Types Data
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. ServletContext.getMimeType(String filename) ? Thanks for the tip. I honestly did search for some solutions before posting. I feel like a fool now. :( Some days are diamonds, and some days are just pieces of coal. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- George Sexton *MH Software, Inc.* Voice: 303 438 9585 http://www.connectdaily.com
Re: Using server Web.xml Mime Types Data
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) ? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Using server Web.xml Mime Types Data
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 > -Original Message- > From: George Sexton [mailto:geor...@mhsoftware.com] > Sent: Tuesday, September 06, 2016 6:59 PM > To: Tomcat Users List> Subject: Using server Web.xml Mime Types Data > > 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. > > > -- > George Sexton > *MH Software, Inc.* > Voice: 303 438 9585 > http://www.connectdaily.com