ClassName |
|
---|---|
Component |
|
The EndTransactionDroplet
servlet bean can be used in a page to manually commit or roll back the current transaction. Any errors that occur during the commit or rollback process are reported to an open parameter, thereby allowing the application to report transaction failures to the user. Any errors that occur are also logged.
Input Parameter
op
The value of this attribute must be either commit
or rollback
, indicating how that transaction should be ended.
Open Parameters
errorOutput
This is an optional open parameter that is executed if an error occurs during the commit or rollback. Within the open parameter, the error is communicated through the following parameters:
errorMessage
: a text message indicating the errorerrorStackTrace
: the full stack trace of the error
successOutput
This is an optional open parameter that is executed if the commit or rollback operation completes successfully.