Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Validator: Blank JS Alerts

Michael Nadel
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The validator seemingly cannot find my message resources.

The resource bundle gets loaded (as per a Struts log message).

There seems to be a key mismatch; it validates correctly, but just shows a blank alert when the form is invalid.

If anyone has any ideas, I'd appreciate it!

Below are the validation XML and relevant excerpt from the resource bundle.

I'm not using Struts modules.



<field property="tradeId" depends="required,mask">
<msg name="required"
<msg name="mask"


documentation.documentSearchForm.tradeId.required=Please specify a Trade ID
documentation.documentSearchForm.tradeId.number=The Trade ID must be a whole number
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic