Re: handle errors -> send exception to action

2004-09-09 Thread Ralph Goers

Your action will have access to the Throwable. It is in the object model.
Take a look at ObjectModelHelper.

Gunter D'Hondt said:
> Hello,
>
> I want to send an email when an exception occurs and inside the mailbody
> the exception stacktrace must be written. So I thought to make an action
> "action-sendmail" and call it from the map:handle-errors part. That
> definitely triggers the action but how can I send the Exception object (or
> just the errormessage and its stacktrace to that action so I can place it
> into the mailbody.
>
> Can the Exception object been sent thru a parameter? Where is the
> exception located? Inside the request object?
>
> See below a snippet of the sitemap
>
> Any help is welcome,
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



handle errors -> send exception to action

2004-09-09 Thread Gunter D'Hondt

Hello,

I want to send an email when an exception
occurs and inside the mailbody the exception stacktrace must be written.
So I thought to make an action "action-sendmail" and call it
from the map:handle-errors part. That definitely triggers the action but
how can I send the Exception object (or just the errormessage and its stacktrace
to that action so I can place it into the mailbody.

Can the Exception object been sent thru
a parameter? Where is the exception located? Inside the request object?

See below a snippet of the sitemap

Any help is welcome,

Regards,
Gunter D'Hondt
SOFICO NV Belgium.