I have a Spring MVC 4.2.x application. I want to use Freemarker as my view resolver. I currently have .jsp's and in them, at the base of all url's is this code:
src="${pageContext.request.contextPath}/images/TrademarkedLogo.png"
My question is how do I do this for freemarker? I know I can add that to the model every time I call a controller, but I obviously don't want to do that if I don't have to. There is the setSharedVariable(name,value) in the configuration, but in spring, you cant set 2 variables in a context.xml.
Any Ideas?