Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

reading a properties file  RSS feed

 
Sapna Suri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
Chrome Eclipse IDE Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Prabakar,
I have read it from servlet using the GWT-RPC mechanism.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!