aspose file tools*
The moose likes Struts and the fly likes A query on Struts 1.3 validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "A query on Struts 1.3 validation" Watch "A query on Struts 1.3 validation" New topic
Author

A query on Struts 1.3 validation

Giriraj Bhojak
Ranch Hand

Joined: Apr 03, 2008
Posts: 72
I am using following field on a form ::

<field property="myProperty" depends="mask">
<msg name="mask" key="errors.invalid" bundle="myBundle"></msg>
</field>

I get an error on console::

java.lang.NullPointerException: No message resources found for bundle: myBundle
at org.apache.struts.validator.Resources.getMessageResources(Resources.java:140)
at org.apache.struts.validator.Resources.getActionMessage(Resources.java:390)

How do i specify the resource bundle name in the bundle attribute of msg tag?

Regards,
Giriraj.
 
jQuery in Action, 2nd edition
 
subject: A query on Struts 1.3 validation