<div dir="ltr"><div>This is mostly for JSP, as per the javadoc on the field: <a href="https://jar-download.com/artifacts/io.undertow/undertow-servlet/2.0.24.Final/source-code/io/undertow/servlet/api/ServletInfo.java">https://jar-download.com/artifacts/io.undertow/undertow-servlet/2.0.24.Final/source-code/io/undertow/servlet/api/ServletInfo.java</a></div><div><br></div><div><br></div><div>Say we have mapped a JSP servlet to /jsp/*, and this directory contains a file called index.jsp. Even though we have technically mapped to a servlet we still want to perform a welcome file match to actually serve /jsp/index.jsp via the welcome file mechanism. It&#39;s a similar story for the default servlet, if there is an index.html it should serve that via a welcome file.</div><div><br></div><div>You are unlikely to ever need this unless you have a servlet that processes or serves resources and want to perform welcome file mappings.</div><div><br></div><div>Stuart</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 1 Aug 2019 at 07:28, Brad Wood &lt;<a href="mailto:bdw429s@gmail.com">bdw429s@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I have some questions about when I should be using the following:<div><br></div><div><font face="courier new, monospace">servletInfo.setRequireWelcomeFileMapping(true)</font></div><div><br></div><div>I can&#39;t find any documentation or comments in the code that help me answer exactly what that setting does and when to use it.  I&#39;m parsing a web.xml file and creating the proper deployment from it, but I&#39;m unsure when to set the option above since there is no corresponding attribute or tag in a web.xml along those lines.  </div><div><br></div><div>I did find this comment in a code sample online</div><div><pre class="gmail-m_-9066212490797251871m_-8818110839628423113gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border:1px solid rgba(0,0,0,0.15);border-radius:4px;background:rgb(248,248,248);color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,&quot;Courier New&quot;,monospace">//if the JSP servlet is mapped to a path that ends in /*<br style="box-sizing:inherit">//we want to perform welcome file matches if the directory is requested</pre><div><div dir="ltr" class="gmail-m_-9066212490797251871m_-8818110839628423113gmail_signature"><div dir="ltr"><div><div dir="ltr"><div></div><div><i>( <a href="https://jar-download.com/artifacts/io.undertow/undertow-jsp/1.0.0.Beta27/source-code/io/undertow/jsp/JspServletBuilder.java" target="_blank">https://jar-download.com/artifacts/io.undertow/undertow-jsp/1.0.0.Beta27/source-code/io/undertow/jsp/JspServletBuilder.java</a> )</i></div><div><br></div><div>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&#39;t seem correct that ALL url filters ending in /* should set that. I&#39;m unclear on whether the welcome files are attempted up front or only if a matching url filter isn&#39;t found.  </div><div><br></div><div>Thanks!</div><div><br></div><div>~Brad</div><div><br></div><div><b>Developer Advocate</b></div><div><i>Ortus Solutions, Corp </i></div><div><b><br></b></div><div>E-mail: <a href="mailto:brad@coldbox.org" target="_blank">brad@coldbox.org</a></div><div>ColdBox Platform: <a href="http://www.coldbox.org" target="_blank">http://www.coldbox.org</a> </div><div>Blog: <a href="http://www.codersrevolution.com" target="_blank">http://www.codersrevolution.com</a></div><div><br></div></div></div></div></div></div></div></div>
_______________________________________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a></blockquote></div></div>