2010-09-07 86 views

回答

0

我不确定是否有任何特定于GWT的内容。但是,我想你可以使用

Servlet.getResourceAsStream

或者,如果你使用JSP,您可以使用application隐含对象来获取ServletContext,您可以使用getResourceAsStream

一些指针herehere

0

在你的onModuleLoad()调用一个RPC通过一个

DeferredCommand.addCommand(new Command() { 
    public void execute() { 
     getDBParameters(); 
    } 
    } 

其中,getDbParameters是通过调用RPC为您填充值的方法。

有关如何与服务器进行通信,请参阅http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html

在服务器端,让你的RPC返回属性的HashMap并读取它们。