我有類似於http://ikaisays.com/2010/09/08/gwt-blobstore-the-new-high-performance-image-serving-api-and-cute-dogs-on-office-chairs/
的項目,它使用BlobStore在谷歌應用引擎上存儲圖像。 但我使用slim3 freamwork。如何在slim3中使用servlet與GWT上傳BlobStore
按照教程我創建Fileupload窗體和Servlet。當我提交表單時,請注意它不會調用Servlet。我可能是我不知道配置應用程序。
和我一樣:
<servlet>
<servlet-name>uploadServlet</servlet-name>
<servlet-class>daTotNghiep.server.UploadServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>uploadServlet</servlet-name>
<url-pattern>/upload</url-pattern>
</servlet-mapping>
//獲取BLOBSTORE網址上傳,並設置返回值uploadForm.Action(串)
public String getBlobstoreUploadUrl() {
// TODO Auto-generated method stub
BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
return blobstoreService.createUploadUrl("/upload");
}
隨着2配置在那,當然uploadForm。 submit()會調用servlet嗎?
完整教程源:http://github.com/ikai/gwt-gae-image-gallery