Hi all, Trying to perform a lookup on the message resource out of my businessobject. Code looks like this:
MessageResourcesFactory mFactory = MessageResourcesFactory.createFactory(); MessageResources mRes = mFactory.createResources(null); message.setSubject(mRes.getMessage("registration.subject")); The result is a NullpointerException: java.lang.NullPointerException at org.apache.struts.util.PropertyMessageResources.loadLocale(PropertyMessageRe sources.java:237) at org.apache.struts.util.PropertyMessageResources.getMessage(PropertyMessageRe sources.java:149) at org.apache.struts.util.MessageResources.getMessage(MessageResources.java:283 ) at org.apache.struts.util.MessageResources.getMessage(MessageResources.java:165 ) at za.co.ibn.datasolutions.beans.User.sendRegistrationInfo(User.java:124) I don't know what I am doing wrong. The Javadoc does not really help me. What about that config String for the createResource method? GreetZ Nils --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]