Re: programmatically setting MIME mappings for static-only site

2019-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Konstantin, On 4/19/19 19:05, Konstantin Kolinko wrote: > пт, 19 апр. 2019 г. в 19:29, Garret Wilson > :> >> I'm wanting to embed Tomcat to only serve static files (for the >> moment). That is, no JSP, etc. I also want to have the welcome >> files c

Re: programmatically setting MIME mappings for static-only site

2019-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Garret, On 4/19/19 17:21, Garret Wilson wrote: > On 4/19/2019 5:12 PM, Christopher Schultz wrote: >>> On April 19, 2019 4:20:24 PM UTC, Garret Wilson >>> wrote: So I've probably answered my own question; this is an old TODO that ne

Re: programmatically setting MIME mappings for static-only site

2019-04-19 Thread Konstantin Kolinko
пт, 19 апр. 2019 г. в 19:29, Garret Wilson :> > I'm wanting to embed Tomcat to only serve static files (for the moment). > That is, no JSP, etc. I also want to have the welcome files completely > customizable. > > So instead of calling `tomcat.addWebapp()`, I go the completely > programmable route

Re: programmatically setting MIME mappings for static-only site

2019-04-19 Thread Garret Wilson
On 4/19/2019 5:12 PM, Christopher Schultz wrote: On April 19, 2019 4:20:24 PM UTC, Garret Wilson wrote: So I've probably answered my own question; this is an old TODO that needs to be done, I suppose? Yep. +1 This is a perfect "beginner" enhancement. Yay! I'd love to take that on. Would

Re: programmatically setting MIME mappings for static-only site

2019-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Garret, On 4/19/19 15:12, Mark Thomas wrote: > On April 19, 2019 4:20:24 PM UTC, Garret Wilson > wrote: >> I'm wanting to embed Tomcat to only serve static files (for the >> moment). That is, no JSP, etc. I also want to have the welcome >> files c

Re: programmatically setting MIME mappings for static-only site

2019-04-19 Thread Mark Thomas
On April 19, 2019 4:20:24 PM UTC, Garret Wilson wrote: >I'm wanting to embed Tomcat to only serve static files (for the >moment). >That is, no JSP, etc. I also want to have the welcome files completely >customizable. > >So instead of calling `tomcat.addWebapp()`, I go the completely >programmab

programmatically setting MIME mappings for static-only site

2019-04-19 Thread Garret Wilson
I'm wanting to embed Tomcat to only serve static files (for the moment). That is, no JSP, etc. I also want to have the welcome files completely customizable. So instead of calling `tomcat.addWebapp()`, I go the completely programmable route and call `tomcat.addContext()`, `context.createWrapp