File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

reading a properties file

Sapna Suri

Joined: Feb 28, 2012
Posts: 2
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.

Prabakar Kalivaradan

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.

Sapna Suri

Joined: Feb 28, 2012
Posts: 2
Thanks Prabakar,
I have read it from servlet using the GWT-RPC mechanism.
I agree. Here's the link:
subject: reading a properties file
It's not a secret anymore!