Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>See <a href="https://stackoverflow.com/questions/322260/which-tomcat-5-context-file-takes-precedence#322535">my answer</a> to the "<a href="https://stackoverflow.com/questions/322260/which-tomcat-5-context-file-takes-precedence">Which Tomcat 5 context file takes precedence</a>" question.</p> <p>Regarding your specific <code>allowLinks</code> question, the value in <code>conf/context.xml</code> takes precedence by default. If you say nothing in your <code>conf/context.xml</code>, the default value is <a href="http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Standard%20Implementation" rel="nofollow noreferrer"><code>allowLinks="false"</code></a> in your <code>conf/context.xml</code>.</p> <p>If you want to change it only for your <code>myapplication</code>, trying to say <code>&lt;Context allowLinks="true" ...&gt;</code> in your <code>META-INF/context.xml</code> will have no effect because <em>normally</em> the <code>conf/context.xml</code> setting will take precedence.</p> <p>But, if you say <code> &lt;Context allowLinks="true" <b>override="true"</b> ...> </code> in your <code>META-INF/context.xml</code>, then all your <code>&lt;Context&gt;</code> settings in <code>META-INF/context.xml</code> will be <strong>highest</strong> precedence, overriding anything in <code>conf/context.xml</code>.</p> <p>Finally, instead of a <code>myapplication/WEB-INF/context.xml</code> file, I recommend using a <code>conf/Catalina/localhost/myapplication.xml</code> file. This technique means you can keep the contents of your WEB-INF clean, which is the guts of your webapp -- I don't like to risk mucking about in the guts of my webapp. :-)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload