This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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.
 
Have you checked out Aspose?
 
subject: reading a properties file
 
jQuery in Action, 3rd edition