De Smet Koen wrote:
> Dear all,
>
> I'm trying to build my own (first) Struts application. I use the nightly
> build 20001130. Each time I try to open my second page after selecting a
> language on my first page, I get an error.
>
Struts uses the standard Java ResourceBundle mechanisms to load the resource
bundles it uses. That means the underlying properties files should be found by
the class loader used for your web application.
In particular, if your resource bundle is named
"warrantClasses.warrantResources", Java will expect to find one of the
following:
* A file in your WEB-INF/classes directory at
"WEB-INF/classes/warrantClasses/warrantResources.properties"
* A file "warrantClasses/warrantResources.properties" in a JAR
file under WEB-INF/lib.
* A file "warrantClasses/warrantResources.properties" somewhere
on the system classpath.
In other words, the rules for finding the properties file for your resources are
exactly the same as the rules for finding a class with the same name.
NOTE: Tomcat 3.1 has some problems with JAR files in WEB-INF/lib. You are
strongly encouraged to update to Tomcat 3.2 or later if you are using 3.1.
Craig McClanahan