aspose file tools*
The moose likes Struts and the fly likes Struts Validator: Blank JS Alerts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Validator: Blank JS Alerts" Watch "Struts Validator: Blank JS Alerts" New topic
Author

Struts Validator: Blank JS Alerts

Michael Nadel
Greenhorn

Joined: May 21, 2001
Posts: 4
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.

Thanks!
Michael

---

<field property="tradeId" depends="required,mask">
<msg name="required"
key="documentation.documentSearchForm.tradeId.required"/>
<msg name="mask"
key="documentation.documentSearchForm.tradeId.number"/>

<var>
<var-name>mask</var-name>
<var-value>^\d+$</var-value>
</var>
</field>

documentation.documentSearchForm.tradeId.required=Please specify a Trade ID
documentation.documentSearchForm.tradeId.number=The Trade ID must be a whole number
 
 
subject: Struts Validator: Blank JS Alerts