File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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
Marshal

Joined: Mar 22, 2005
Posts: 42274
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why ApplicationResources should be placed in classess directory