English 中文(简体)
我如何利用全球WT RPC来拯救客户一方的档案?
原标题:How do I use a GWT RPC to save a file on the client side?

I m 寻找如何从GWT申请的服务器方发送档案的具体代码,以便客户方用户能够在其机器上储蓄。 目前,该评估使用户能够上载一个文件,读到,并将档案中的某些价值放在可编辑的文本箱中。 当用户打上“星号”时,它收集了经过编辑的数据,将数据重新输入档案,并将数据传送到服务器上,我想在服务器上将其输入档案,然后推回客户的用户,以便他们能够将其节省到机器上。 我如何做到这一点?

如果看上去像一件明显的事情,但我对WT和java将军来说比较新。 感谢!

最佳回答

我认为,你想要从使用地球静止轨道的服务器下载一个使用内容类型的文件。

我发现的最容易的方法是:

import com.google.gwt.user.client.ui.NamedFramerdddccvc   

...
NamedFrame iframe = new NamedFrame(frameName);        
iframe.setVisible(false);

parent.addChild(iframe);
iframe.setUrl(url);

重要的是,从服务器中提取的圆顶能够返回一个带有“文字/解释”内容的网页,或者使用要求有效的页面。

问题回答

你们可以做的是,制作一个材料,使案文成为内容,并为内容打上相应的模版。 在你看来,你可以通过费尔南多建议的Francorame方法,把这个保护区称作“Franciscot”。

这里有许多关于如何做到这一点的建议。 检索[java] 文档下载Serlvet,并将找到许多实例/指南说明如何做到这一点。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签