[undertow-dev] When to use RequireWelcomeFileMapping

Brad Wood bdw429s at gmail.com
Tue Aug 13 10:36:13 EDT 2019


Anyone have input?  A link to elusive docs?

Thanks!

~Brad

*Developer Advocate*
*Ortus Solutions, Corp *

E-mail: brad at 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 at 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/source-code/io/undertow/jsp/JspServletBuilder.java
> <https://jar-download.com/artifacts/io.undertow/undertow-jsp/1.0.0.Beta27/source-code/io/undertow/jsp/JspServletBuilder.java>
> )*
>
> 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 at coldbox.org
> ColdBox Platform: http://www.coldbox.org
> Blog: http://www.codersrevolution.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20190813/00ecccc7/attachment.html 


More information about the undertow-dev mailing list