wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "A query on Struts 1.3 validation" Watch "A query on Struts 1.3 validation" New topic

A query on Struts 1.3 validation

Giriraj Bhojak
Ranch Hand

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

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

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?

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: A query on Struts 1.3 validation
Similar Threads
required validation on integer field not working
Struts validator Framework
Validating password field
masking validation problem
Struts Validator: Blank JS Alerts