I\'m pretty new to the Spring framework and web applications, though I\'m experienced with Java. When I run my site on a local tomcat server the URL is: http://localhost:8
It is good practice to put all your links as follows
Other site
${pageContext.servletContext.contextPath} always gives your application root, when you are developing use http://localhost:8080/myApp
, then your application root is /myapp, but when you want to place your application in production generally your application root will be /, using ${pageContext.servletContext.contextPath} before links you ensure it will work in both cases