Tomcat doesn't return image resources

点点圈 提交于 2020-01-11 07:47:31

问题


I'm using eclipse and run my jsp/servlet using tomcat6 from eclipse. My servlet creates for me an image that i store in to a directory in my webapps. But when i try to access to this image from my JSP it returns me that the resource is not available.

What's the problem?

Servlet store image in "myapp/images/saved.png"


回答1:


You need to move the images directory into the WebContent directory. That will make it work.



来源:https://stackoverflow.com/questions/12770989/tomcat-doesnt-return-image-resources

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!