Hi,
You can use the placeholder ({0}, {1} ..) feature in message resource
something like this:
In property file:
errors.your_runtime_msg.key = {0}
In Action or form bean:
new ActionError("errors.your_runtime_msg.key", "your runtime message,
blah, blah..");
" your runtime message, blah, blah.." will replace {0}
Saul
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 12, 2003 11:45 AM
> To: [EMAIL PROTECTED]
> Subject: ActionErrors
>
>
>
>
>
> Hello,
>
> This works fine:
> errors.add(ActionErrors.GLOBAL_ERROR,new
> ActionError("errors.createkunde.float"));
>
> but i want to define the message at runtime, i want to put a string
into
> the
> ActionError that is not defined in .properties file.
>
> Is that possible ?
> if yes, could u give me a example ?
>
>
> thnx for help
>
>
> ---------------------------------------------------------------------
> 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]