Anyone have input? A link to elusive docs?
Thanks!
~Brad
*Developer Advocate*
*Ortus Solutions, Corp *
E-mail: brad(a)coldbox.org
ColdBox Platform:
http://www.coldbox.org
Blog:
http://www.codersrevolution.com
On Wed, Jul 31, 2019 at 3:50 PM Brad Wood <bdw429s(a)gmail.com> wrote:
I have some questions about when I should be using the following:
servletInfo.setRequireWelcomeFileMapping(true)
I can't find any documentation or comments in the code that help me answer
exactly what that setting does and when to use it. I'm parsing a web.xml
file and creating the proper deployment from it, but I'm unsure when to set
the option above since there is no corresponding attribute or tag in a
web.xml along those lines.
I did find this comment in a code sample online
//if the JSP servlet is mapped to a path that ends in /*
//we want to perform welcome file matches if the directory is requested
*(
https://jar-download.com/artifacts/io.undertow/undertow-jsp/1.0.0.Beta27/...
<
https://jar-download.com/artifacts/io.undertow/undertow-jsp/1.0.0.Beta27/...
)*
but my app server has more than one servlet mapping with URL filters
ending with /* and the welcome file list should only apply to one of them
so it doesn't seem correct that ALL url filters ending in /* should set
that. I'm unclear on whether the welcome files are attempted up front or
only if a matching url filter isn't found.
Thanks!
~Brad
*Developer Advocate*
*Ortus Solutions, Corp *
E-mail: brad(a)coldbox.org
ColdBox Platform:
http://www.coldbox.org
Blog:
http://www.codersrevolution.com