The name of the host would presumably be available from the actionform, or some bean in your action. Then you would create an ActionError like this:
new ActionError("errors.required",hostName); I'm not sure I understand why the host name, which seems to be a variable would be represented as a key also. -----Original Message----- From: Zsolt Koppany [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 9:47 AM To: Struts Users Mailing List Subject: Re: How to use ActionError with two keys? And how can I do that? How can I get the string assigned to for example "errors.required"? Zsolt On Wed, 2003-08-06 at 15:36, Prashanth.S wrote: > Hi > i think u need to use positional parameter substitution instead of using another key > like {0},{1} etc in actionerror and replace them with actual values in properties file.. > HTH > prashanth > > Zsolt Koppany <[EMAIL PROTECTED]> wrote: > Hi, > > how can I use ActionError with two keys. The example below show what I > would like to do: > > > new ActionError("errors.required", "host.name") > > > > Zsolt > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------- > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]