1
我與GWT應用程序的工作與簡單的框架,整合解析對象到XML,我有客戶端POJO類,並使用服務器端的解析器。我需要寫序列化對象的字符串變量,而不是文件原因文件GWT應用程序引擎不允許https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/M7Zo3U7CKD8。如何對象進行序列字符串使用SimpleFramework
當前的代碼,我在服務器端上GWT RPC ServiceImpl
File result = new File("c:/myXMLFile.xml");
Serializer serializer = new Persister();
MyBeanToSerialize beanToSerialize = new MyBeanToSerialize("firstName","LastName");
serializer.write(beanToSerialize, result);