This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: validwhen returns required error messge
 
Similar Threads
ValidWhen Error for field ' bcprice' - line 1:17: unexpected token: )
ValidWhen problem in struts 1.3.10
How to perform validation conditionally ?
radiobutton and Validwhen problem!
Validator validwhen question