问题
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