There is a example page in the struts-examples.war webapp shipped with
Struts 1.2.7 - if you go to the "validator" section and choose the
"bundles" example.
My guess is one of your other validations needs the "default" bundle
either for an <arg> or <msg> element. You need to make sure all the
keys are in the right bundles and those MessageResources defined to
struts in the config.
How about defining you Message Resources twice - once as default and
the other as test - just to see that it works.
<message-resources parameter="com.xinfo.struts.example.strutsDemo.Application"/>
<message-resources key="test"
parameter="com.xinfo.struts.example.strutsDemo.Application"/>
If that works then you can start to get them set up properly
Niall
On 11/28/05, starki78 <[EMAIL PROTECTED]> wrote:
> OK I tried to give out the error with the bundle and the property:
>
> <tr>
> <td>mask</td>
> <td><bean:message bundle="test"
> key="validationExample.form.qnummer"/></td>
> <td><html:text property="qnummer"/></td>
> <td>
> //--> try to write out the error!
> <html:errors bundle="test"
> property="qnummer" /></td>
> </tr>
>
>
>
> in the validation.xml!!
>
> <field property="qnummer"
> depends="mask">
> <arg bundle="test" position="0"
> key="validationExample.form.qnummer"/>
> <arg position="1" name="mask" key="${var:mask}"
> resource="false"/>
> <var>
> <var-name>mask</var-name>
> <var-value>^[QXqx0-9]*$</var-value>
> </var>
> </field>
>
>
> I get the following error:
>
> 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:
> org.apache.struts.action.MESSAGE
>
>
> This makes me mad! But thank's a lot for your help!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]