user1312490
user1312490

Reputation: 171

Tomcat doesn't return image resources

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"

enter image description here

Upvotes: 0

Views: 2237

Answers (1)

Pradeep Pati
Pradeep Pati

Reputation: 5919

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

Upvotes: 2

Related Questions