You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tom Janofsky <to...@yahoo.com> on 2001/02/01 17:34:02 UTC

Re: ActionError without using message resource?

Good question.  Is the use of ActionError and the properties file
coupled?  Or can you code your errors in-line?

--tom

> Mike Bell wrote:
> 
> Hello,
> 
> Is it possible to create an ActionError without using a message
> resource?
> At this time we don't really have a need for a message resource and
> would
> like to just put the error message string directly in the call.
> 
> like:
> 
>     ActionErrors errors = new ActionErrors();
>     errors.add("name", new ActionError("The Error String"));
> 
> -Mike
>