My Package-Structure looks like:
My images are stored under src/main/webapp/images.
Now i want to dynamically link to a picture e.g.:
Image picture = new Image("picture",
new ContextRelativeResource("/images/races/"
+ dynamicPicture));
The Problem is, that my Application can't find /images/races/$dynamicPicture. How do i set the correct path to my image folder? The Appliation Server used is Jetty.
It will work with (removed the leading slash)
Image picture = new Image("picture",
new ContextRelativeResource("images/races/"
+ dynamicPicture));