On 6/12/2018 10:48 AM, Christopher Schultz wrote:
<snip/>
You want
http://tomcat.apache.org/tomcat-9.0-doc/config/resources.html


You'd add something like this:

<Resources> <PostResources base="W:\some\path"
className="org.apache.catalina.webresources.DirResourceSet"
webAppMount="/"/> </Resources>

Which would make the content of W:\some\path visible at the root of
the web application. Note that normally handling will apply. So,
for example, anything named *.jsp will get treated as as JSP page.
You'll want to edit your web application's META-INF/context.xml file.

If no such file exists, create a new one with this in it:

<Context>
</Context>

Then nest everything else inside that XML element wrapper.
I thought that the XML declaration is required but testing shows that it is not, and that the above example works (further investigation revealed that in XML 1.1 the declaration is required but we're using XML 1.0 here).

Good to know.


Igal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to