Hi,
I have a web app. My all
jsp files are located inside /WEB-INF folder. The jsps use a lot of files like , e.g- css, js , images. These are located in a folder outside /WEB-INF, and within the application context( say /sra).
Now I have a datepicker.js file (which is used by the jsp), which uses some image files. Both the image ad js file are residing in the same folder say /sra/js/datepicker.js and /sra/js/sra.gif.
But most surprisingly in the js I have to access the image file using the full path starting frm the context. In case I am giving any relative path it's not taking.
It's a major issue as my client can change the context name. In that case the images will never be laoded.
So if anyone has sol'n for this kindly post..
Regards-
Anirban