GeeCON Prague 2014*
The moose likes GWT and the fly likes reading a properties file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » GWT
Bookmark "reading a properties file " Watch "reading a properties file " New topic
Author

reading a properties file

Sapna Suri
Greenhorn

Joined: Feb 28, 2012
Posts: 2
Hi,
We have a requirement of reading a properties file ( which would be placed outside the .war ) and then populate the drop-down list.
Need some insight on how can we read the properties file in client code?

Any help is highly appreciated.
Thanks
Sapna

Prabakar Kalivaradan
Greenhorn

Joined: Dec 12, 2011
Posts: 20

Client side java code is going to be translated into pure http/javascript code, so it cannot read property files. However, one can use GWT-RPC mechanism to let a servlet read a properties file and send it to client as HashMap/Hashtable object to client side.

-prabak
Sapna Suri
Greenhorn

Joined: Feb 28, 2012
Posts: 2
Thanks Prabakar,
I have read it from servlet using the GWT-RPC mechanism.
 
GeeCON Prague 2014
 
subject: reading a properties file