This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes WEB-INF directory is the correct place to place Application.properties file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "WEB-INF directory is the correct place to place Application.properties file" Watch "WEB-INF directory is the correct place to place Application.properties file" New topic
Author

WEB-INF directory is the correct place to place Application.properties file

sai prasanna
Ranch Hand

Joined: May 02, 2005
Posts: 167
hi all,

WEB-INF directory is the correct place to place Application.properties file

thanks in advance
saiprasannna
Eduardo Dela Rosa
Greenhorn

Joined: Apr 15, 2004
Posts: 25
Hi,

WEB-INF/classes folder would be the appropriate place to put it. After all,
that would serve as the root directory for your classpath.

HTH.


Eduardo dela Rosa<br />SCJP 1.4
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026

WEB-INF/classes folder would be the appropriate place to put it.


Along with appropriate package directory structure.


Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Manikandan Jayaraman
Ranch Hand

Joined: Sep 15, 2004
Posts: 230
Yes Vishnu. You are right ... and in case of struts, ApplicationResources.properties can also reside in the same folder where we can configure all the messages that appear in our web pages.

This supports a good internationalization extension.


Regards,<br />Mani<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (94%)
 
jQuery in Action, 2nd edition
 
subject: WEB-INF directory is the correct place to place Application.properties file