sts springsourcetoolsuite - Run Web Application In Root Path In Eclipse -


when run grails web application in eclipse, runs in tomcat @ localhost:8080/projectname

due this, when css needs reference image needs reference /projectname/images/image.gif. on production server, however, application run @ root directory, projectname can't hardcoded path.

how can debug application in root directory? right way think problem? thanks.

i think can reference projectname request.getcontextpath() should give right application path.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -