struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 梁炳場 <>
Subject Validator Questions?
Date Thu, 25 Aug 2005 04:22:11 GMT
Struts 1.2.7

The following tag can test the emptiness of the field.
<html:errors property="username" header="empty"/>

If I want to display a specific message when it is not empty
and display error message when it is empty,
what should be done in header="???" or something else

I have a message in like 
but do not have addUserProfileForm.username

It gives an error message like this.
???zh_TW.addUserProfileForm.username??? is required. 

Can it be done as using addUserProfileForm.username.label 
instead of addUserProfileForm.username
when the field is empty?

Thank you very much

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message