File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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.
 
 
subject: reading a properties file
 
Similar Threads
property files in ejb tier
Constants Class
Downlaod in Strut2
No suitable driver found for jdbc:oracle:thin:@localhost:1521:Indu
how to read properties file from maven's pom.xml?