struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Janofsky <tomjanof...@yahoo.com>
Subject Re: ActionError without using message resource?
Date Thu, 01 Feb 2001 16:34:02 GMT

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
>

Mime
View raw message