I want to set the root so that I can instead reference like
<link rel="stylesheet" type="text/css" href="/MyWebApp/css/styles.css" />
I remember doing something similar many years back, but cannot find a solution - if there even is one.
<link rel="stylesheet" type="text/css" href="/css/styles.css" />
799566 wrote:Yes, you can define a META-INF/context.xml file and override the context path that way. It will be something like:
Is there not a way to set that location though somewhere in a tomcat config file? I vaguely remember doing it in the context.xml file, but everything ive tried doesn't seem to work.
But as said, that won't help you.
<Context path="/yourapp"> <!-- other config here --> </Context>