struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dilip Ladhani" <>
Subject Validator question Struts 1.2.9
Date Wed, 21 Mar 2007 16:48:12 GMT
I have gotten the validator to work in may of my projects, but I am
stuck on this one and was wondering if someone can help.
I have a under WEB-INF/classes which
contains all the messages.
In my struts-config I have the following line
<message-resources key="messages" parameter="MessageResources" />
Here is my validation.xml
        <form name="/showConfirmCompletedCourses">
                    <arg key="label.Category"/>
                    <arg key="label.StartDate"/>
I also tried putting <arg bundle="messages" key="label.Category"/>
I always get an exception when I validate. I call the form.validate
from my action class, I always get the following exception

2007-03-21 12:41:36,437] [location -
....Unhandled exception thrown during validation: No message resources
found for bundle: org.apache.struts.action.MESSAGE
java.lang.NullPointerException: No message resources found for bundle:
	at org.apache.struts.validator.Resources.getMessageResources(
	at org.apache.struts.validator.Resources.getActionMessage(
	at org.apache.struts.validator.FieldChecks.validateRequired(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message