You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "White, Joshua A (HTSC, CASD)" <Jo...@thehartford.com> on 2003/07/25 18:35:46 UTC

How to create action error with two keys?

Say I have the following items in my message properties file.


label.name=Your Name
errors.required=<li>{0} is required.</li>


What is the simplest way for me to end up with "Your Name is required."

The constructor takes a key and a value.  What if you have two keys?  

ActionError(java.lang.String key, java.lang.Object[] values)


Thanks,

Joshua


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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