struts-user mailing list archives

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

(1)
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


(2)
I have a message in MessageResources.properties like 
addUserProfileForm.username.label 
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message