[Idrs-dev] Some New Features
Brought to you by:
bigman921
|
From: Marc B. <mbo...@ya...> - 2002-09-10 04:53:19
|
Hello everyone. I have added a couple of features that conform to the
path towords 2.0!
The two new main features are:
1. Transaction handling support
2. Automatic Error Handling
Transaction Support is designed allow for a page developer to not worry
about transactions that span multiple connections. Inorder to use a
transaction in a <db> tag, there must be a transaction tag. This tag
can have 1 of 2 values:
BEGIN -- Begin a transaction
COMPLETE -- If not yet begin, begin a transaction; commit all
transactions
=20
Any errors that are generated (part of Automatic Error Handling) or
exceptions force a rollback of all transactions. There is no longer any
need for programmers to manualy track transactions.
Automatic error handkling allows the IDRS to have a 2-RML Page Form
Entry Process. When a form is created using the <formInput> an elemnet
called "doc_GoBack" should contain the name of the RML page contaning
the form. If an error occurrs, the entire request is forwarded back to
the doc_GoBack page and combined with the "paramfirst" option in
<formInput>. There is also an <error> tag which allows for the display
of an error if one occurrs. =20
Errors are generated using the IdrsScript.createError(description)
causes all business logic to stop and to have the request forwarded to
the doc_GoBAck input parameter if it exists, or an exception will be
thrown with the passed in description going to the error page.
These 2 new features will be featured in a new tutorial.
The next major feature I am working on is EJB support. I will be
publishing a project paper int he next few days.
Marc Boorshtein
|