wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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: 41149
    
  45
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
 
wood burning stoves
 
subject: why ApplicationResources should be placed in classess directory
 
Similar Threads
How to use Container Managed EntityManager inside the SessionBean
<img> tag not showing the image
HTTP Status 404 - /myapps/helloworldservlet
JBoss Web 1.0.1 & WAR
First Hibernate Test Application Errors out