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 Unable to utilize Application Resources Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unable to utilize Application Resources" Watch "Unable to utilize Application Resources" New topic
Author

Unable to utilize Application Resources

Karwan Salih
Greenhorn

Joined: Jan 22, 2004
Posts: 2
Hi,
I'm using Struts 1.0.2 with JBoss 3.2.4. I define the ActionServlet in my web.xml as follows:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>org.aadpw.pims.actions.ApplicationResources</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
Also, I have the ApplicationResources.properties file in the /WEB-INF/calsses/org/aadpw/pims/action folder. Still, when I have a validation error it shows null null instead of the error message. Also, if I try to retrieve a message using bean:message, it fires "Missing message for key" exception.
Any thoughts? Your help is appreciated.
Thanks,
salihk
Karwan Salih
Greenhorn

Joined: Jan 22, 2004
Posts: 2
Hi all,
I figured it out. The encoding of the ApplicationResources.properties file was changed to something other than Unicode. I used Notepad to edit the file.
salihk
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Unable to utilize Application Resources
 
Similar Threads
Struts Application is not running
TilesServlet not found.
Using Tiles with JSF (no struts)
Multiple Struts-config.xml in Jboss 4.2.1
help with module level struts config