"Missing message for key" error in Struts app.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Darrin_Smith
Posted On:   Monday, January 19, 2004 09:19 AM

I'm new to Struts and I'm trying to take a sample application and convert it's source to a fully qualified path to help get my application started. In short, the package statement on all of the files was for example: package strutsExample; I converted all of these to: package com.company.product.strutsExample; Next I went to the web.xml file and converted from this: strutsExample org.apache.struts.action.ActionServlet application strutsExample.ApplicationResources To this: orders org.apache.struts.action.ActionServlet a   More>>

I'm new to Struts and I'm trying to take a sample application and convert it's source to a fully qualified path to help get my application started.



In short, the package statement on all of the files was for example:
package strutsExample;



I converted all of these to:
package com.company.product.strutsExample;



Next I went to the web.xml file and converted from this:

			


strutsExample
org.apache.struts.action.ActionServlet

application
strutsExample.ApplicationResources





To this:



			


orders
org.apache.struts.action.ActionServlet

application
com.company.product.strutsExample.ApplicationResources




I then compiled everything and deployed it to Tomcat. Now I get a "Missing message for key image.struts" message.


What did I forget to do?



There is an ApplicationResources file with a key of image.struts in it located at: comcompanyproductstrutsExample.



THANKS!    <<Less

Re: "Missing message for key" error in Struts app.

Posted By:   Darrin_Smith  
Posted On:   Monday, January 19, 2004 02:07 PM

Hold on...spoke too soon.



I didn't see what I thought I did as I was trying to retrace my steps to see what went wrong.




Yes, the files are in the correct location. Looking at the war file I see:




strutsExample.warWEB-INFclassescomcompanyproductstrutsExample




Sorry...any other thoughts?

Re: "Missing message for key" error in Struts app.

Posted By:   Anna_Yates  
Posted On:   Monday, January 19, 2004 12:45 PM

Is the ApplicationResources file in the following directory:
WEB-INFclassescomcompanyproductstrutsExample ?
I assume before you changed the entry to fully qualified names, the ApplicationResoucres file was in WEB-INFclassesstrutsExample
About | Sitemap | Contact