facebook

Acessing .properties files from web apps

  1. MyEclipse IDE
  2.  > 
  3. Comments
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #209874 Reply

    Segao
    Member

    How can I access .properties files from an web app? where they should stay so they can be deployed? What about a default properties file?

    Thanks

    😯

    #209879 Reply

    Riyad Kalla
    Member

    definately outside fo the scope of the MyEclipse, so I’m going to move this to random thoughts… BUT

    you probably want to stick your properties file in your WEB-INF folder, then use servletContext.getRealPath(“/WEB-INF/myfile.properties”) to figure out the real name, then use Properties to load it.

    And there is no such thing as a default properties file that I’m aware of in Java.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Acessing .properties files from web apps

You must be logged in to post in the forum log in