This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes why ApplicationResources should be placed in classess directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "why ApplicationResources should be placed in classess directory" Watch "why ApplicationResources should be placed in classess directory" New topic
Author

why ApplicationResources should be placed in classess directory

sai prasanna
Ranch Hand

Joined: May 02, 2005
Posts: 167
hi
why ApplicationResources_language_country.properties should be placed in
classes directory because it is not a .class file.

Is this is correct that client/webbrowser cannot access these private files directly.

thanks in advance
saiprasanna
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
The I18N properties files are not classes, but they are made available by the class loader, which looks for resources in the classpath.

You're correct that everything inside of the WEB-INF folder can not be accessed by a client. That's defined in the servlet specification.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why ApplicationResources should be placed in classess directory
 
It's not a secret anymore!