Two Laptop Bag*
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 Murach's Java Servlets and JSP this week in the Servlets 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(
at org.apache.struts.validator.Resources.getActionMessage(

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

I agree. Here's the link:
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