struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roberto Lima Jr <robe...@softsite.com.br>
Subject Check if a message exists
Date Sun, 26 Mar 2006 20:36:34 GMT
Hi, evereyone,

I need to check if a message was specified in my application.properties 
before create an ActionError whith this error.

Example:

if (hasMessage("error.text.required")) {
   message = new ActionMessage("error.text.required");
}else {
   message = new ActionMessage("error.default.message");
}

Does anybody know how to implement the "hasMessage" method???

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message