In Java, web apps are bundled in to WARs. By default, many servlet containers will use the WAR name as the context name for the application.
Thus myapp.war gets depl
Vilmantas said the right word here: relative URLs.
All you need to do in your IMG is to use
instead of
and it'll be relative to the app context (as the browser is interpreting the URL to go to)