File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes validwhen returns required error messge 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 "validwhen returns required error messge" Watch "validwhen returns required error messge" New topic
Author

validwhen returns required error messge

Hiroyuki Suzuki
Greenhorn

Joined: Jul 25, 2007
Posts: 24
hello guys!
by default, validwhen uses required error message,
How can I overwrite the required error message instead
use invalid error message for my validwhen validation?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If you add a <msg> stanza, it will substitute your message for the default message. Example:


Merrill
Consultant, Sima Solutions
Hiroyuki Suzuki
Greenhorn

Joined: Jul 25, 2007
Posts: 24
thank you very much..
it works now...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validwhen returns required error messge
 
Similar Threads
ValidWhen Error for field ' bcprice' - line 1:17: unexpected token: )
How to perform validation conditionally ?
ValidWhen problem in struts 1.3.10
radiobutton and Validwhen problem!
Validator validwhen question