In Python to host a basic website on app-engine, I can put all my image files in a static directory, say img, and then in the yaml file have
- url: /img
static_dir: img
then to access my images, I simply do myid.appspot.com/img/pic.jpeg
I need to do the same thing for a Java google-endpoint backend. How would that work? I am using the Google-eclipse-plugin. I suppose I need to edit the web.xml
file. But I am not sure what I would put in there.
The structure of my /img
directory is such that it in turn contains many directories, each with images in them. For example: /img/famousActors/willSmith.jpeg
.
According to the documentation, putting them in a folder other than
WEB-INF
is all you have to do.A request to
/img/famousActors/willSmith.jpeg
should work without additional configuration.