attaches image of project hierarchy. trying call image images directory jsp file in jsp directory getting blank screen.
so far have tried :
/web-inf/images/'<'imagefilename'>'
/images/'<'imagefilename'>'
/'<'imagefilename'>'
src/main/webapp/web-inf/images/'<'imagefilename'>'
please me on this.
you can't access resources under web-inf
folder, serves purpose, hold resources not directly visible public available classloader (servlets) of web app.
you should make mapping means of mvc:resources
element, should checkout docs
for particular case mapping like
<mvc:resources mapping="/images/**" location="/web-inf/images"/>
should work out, , you'll able browse images via request such
/images/'<'imagefilename'>'
Comments
Post a Comment