You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Erik Dworog <er...@zdv.uni-tuebingen.de> on 2001/02/02 17:11:18 UTC

Can I have error messages replace other messages?

Hi,

(I'm new to Struts and...) I'm wondering if there's a way to have an error
message (e.g. <html:errors...>) replace the "normal" message.
For example: I have a logon page with 2 fields (usr & pwd) and the messages
"user name:" and "password:" in front of the fields. If the user forgets to
enter a password I'd like to replace "password:" with "You have to enter a
password!" or something...
Is it possible?

Thanks,

Erik Dworog