Finally, check to see if the request made was a form post or a file upload, in which case you output the data as a valid HTML page with the JSON-encoded output contained in a HTML element.
最后,查看请求是一个表单post还是文件上传,在这种情况下,输出数据作为一个有效的html页面,该页面的元素中含有json格式编码的输出。
There's not much to repurposing our upload form for Blobstore: just copy datastore.jsp to a file named blobstore.jsp, then augment it with the bold lines of code shown in Listing 13
我们不需要重复地为 Blobstore 创建上传表单:我们只需要将 datastore.jsp 复制为一个名为 Blobstore.jsp 文件,然后增加清单 13 所示的粗体代码
应用推荐