Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


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
Marshal

Joined: Mar 22, 2005
Posts: 42031
    
  64
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.


Ping & DNS - my free Android networking tools app
 
GeeCON Prague 2014
 
subject: why ApplicationResources should be placed in classess directory