Hi all,

Sorry for the repetition, but I can't seem to figure this out in spite of all 
those resources you can find online.

Using struts 1.3.8 (in Liferay 5.1.2 portal on Tomcat 6.0, through the apache 
bridge) I'm having trouble accessing message resources.

In a portlet I've a struts-config that loads the resource file like this:

<message-resources parameter="content.Messages" null="false" />

In the WEB-INF/src/content folder I have two files - a Messages.properties and 
Messages_en.properties, both containing a line looking like this:

error.name.required=Please fill in your name

My JSP has a line saying: <bean:message key="error.name.required" />

The exception that is generated is:

javax.servlet.jsp.JspException: Missing message for key "error.name.required"

Now I understand this is might be a classpath problem. However, I don't know 
how am I expected to tell Struts where it can find these resources?

Kind regards,
Evert

Reply via email to