David
try this solution From Gogeneni Pratima:
errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError("view.construction.error", e.getMessage()));
in the application.properties you should have:
view.construction.error=<li>Could not construct view because: {0}</li>
e.getMessage() is substituted instead of {0}
Makes sense?
-Martin
----- Original Message -----
From: "David Erickson" <[EMAIL PROTECTED]>
To: "Struts Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 23, 2003 11:33 AM
Subject: Dynamic Errors with/Action Error?
> Is it possible to create any kind of a Dynamic Error using the
ActionErrors
> framework? IE put a $1 or something in the application.properties file on
> the error you want to use then parse and replace it? Gets annoying having
> to make a zillion static errors to display.
> Cheers,
> David
>
>
> ---------------------------------------------------------------------
> 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]