Fetching a image in server context path from javascript code
问题 I have a spring based web application MyWebapp built using maven and deployed on Websphere 6.1 The folder structure is: MyApp --> src ---> main ---> The main folder is further having resources and webapp folders. webapp folders is having other folders like images, theme, jscript, JSP, META-INF, WEB-INF images folder is having icons folder with say example.png So fetching example.png on localhost as: http://localhost:9080/MyWebapp/images/icons/example.png succeeds. In jscript folder I have a