• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

properties file

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all
i have one doubt which relates to properties file in struts
i.e how to access and modify properties file which is located out side the war.

please let me know the answere

thanks
[ June 10, 2008: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As long as you know the path to a file, you can always use the classes in the java.io package to read from and write to the file. This includes a .properties file.
 
govind rajulu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Merrill Higginson:
As long as you know the path to a file, you can always use the classes in the java.io package to read from and write to the file. This includes a .properties file.



thanks for your reply

i do not know how to access properties file form outside the war
please give me one example so that i can understand clearly

thanks
govind
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here' a link on how to read from and write to a properties file.

http://exampledepot.com/egs/java.util/Props.html

Doing this in a web application is no different than doing it any other Java application. All you need is the full path to the file.
reply
    Bookmark Topic Watch Topic
  • New Topic