SmartGWT/GWT:在客户端显示PDF [英] SmartGWT/GWT: Show a PDF on client side
本文介绍了SmartGWT/GWT:在客户端显示PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在服务器端已经生成了PDF,单击客户端上的按钮时,我希望获得一些显示pdf的帮助.
I have an already generated PDF on my server-side,I would like some help on showing the pdf when clicking a button on the client side.
我应该如何使用共享与服务器和客户端创建共付额?
How should I create the conextion with the server and client using the shared?
谢谢您的帮助.
推荐答案
创建一个servlet,并在单击按钮时从客户端调用它.
Create a servlet and call it from client side on clicking a button.
String servletName = GWT.getModuleBaseURL().replace("/" + GWT.getModuleName(), "")
+ "pdf_download_servlet";
Window.open(servletName, "", "");
For a servlet code please have a look at need a servlet to download a file.
这篇关于SmartGWT/GWT:在客户端显示PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文