Here you added the image just as you did in the standalone class, except that you retrieve parameters from the servlet request to determine the location and title of the file to be added.
此处我们添加了图像,其操作和在standalone中添加图像一样。不同之处就是需要从servlet请求中检索参数,以决定待添加文件的位置和标题。
Listing 4 sets up a standalone service class containing two methods.
清单4创建了一个单独的服务类,它包含两个函数。
应用推荐