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
Post a Comment