Struts and Resource Bundle problems javacode 9085791

Struts and Resource Bundle problems

Working my way through the first chapter of Jakarta Struts Live book, I could not get my own application working, failing at the


<bean:message key="welcome.databaseSelection"/>

The annoying thing was that the JSP page containing this statement remained blank! Inspection in the Tomcat log files showed that there was a problem with the resource bundle:

Cannot find message resources under key org.apache.struts.action.MESSAGE

On the Internet I found that I had to add

<message-resources parameter= "resources/application" />

to the struts-config.xml (right after the action-mapping section!), where my resource bundle resides in

WEB-INF/classes/resources/application.properties

I could not find any mention of this in the book though!

One Response

  1. jasper July 19, 2004