This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion 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: 72
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
jQuery in Action, 3rd edition