Well I am pretty happy working at home with a local Apache Tomcat and serving the static files with help of FileServlet, also I am following a instruction as said in this answer that:
You should not store the files in the webcontent. This will fail when the WAR is not expanded and even when it is, all files will get lost whenever you redeploy the WAR.
But now I am using Google App Engine for my application, where I cannot configure the server, also it usesjetty which is new for me. All the things in my web application gets uploaded to server through eclipse but I cannot upload a folder outside to WAR. Now how can I apply such static file serving here using a Servlet, should I use Google Blobstore? , or just simply a database that can be Google Cloud SQL or there is any other way out?
Thanks,
Asif
You don’t need a FileServlet to serve static content. Instead, declare the files that intend to be static, and App Engine will manage serving them. If for some reason you need to read a file programatically, then declare it to be a resource.
See https://developers.google.com/appengine/docs/java/config/appconfig#Static_Files_and_Resource_Files