Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A query on Struts 1.3 validation

 
Giriraj Bhojak
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic