I have some images stored in /images the problem is that i wish to return a url like so from a class.
/images/test.png
The problem is that in my development machine my url is in the form of
http://localhost/myApp
and in production its in the form of
http://www.mysite.com
so i can't just return /images as this doesn't work on the development machine
I suppose what i am trying to do in Java is the same as teh JSTL tag does
<c:url
So when i am in my development machine it would return
/myApp/images/test.png
and in production
/images/test.png
can anyone help?
Thanks in advance