Update of /cvsroot/webware/Webware/WebKit/Docs
In directory sc8-pr-cvs1:/tmp/cvs-serv14435/Docs
Modified Files:
Tutorial.txt
Log Message:
* ensure that Servlet.sleep() is called even when an unhandled exception
occurs in awake() or respond().
* Document this change in the docstrings and in Tutorial.txt.
* Added Page.defaultAction(), which is called when no other action
has been recognized in the request. The default implementation calls
writeHTML, which preserves old behaviour.
Index: Tutorial.txt
===================================================================
RCS file: /cvsroot/webware/Webware/WebKit/Docs/Tutorial.txt,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** Tutorial.txt 12 Feb 2003 06:28:03 -0000 1.8
--- Tutorial.txt 14 Apr 2003 18:03:48 -0000 1.9
***************
*** 118,122 ****
* ``sleep(transaction)`` is called. This is where you should clean up anything
you might have set up earlier -- open files, open database connections, etc.
! Often it's empty.
* The servlet is placed back into the pool, to be used again. This only happens
after the transaction is complete -- the servlet won't get reused any earlier.
--- 118,124 ----
* ``sleep(transaction)`` is called. This is where you should clean up anything
you might have set up earlier -- open files, open database connections, etc.
! Often it's empty. Note that ``sleep()`` is called even if an exception was
! raised at any point in the servlet processing, so it should (if necessary)
! check that each resource was in fact acquired before trying to release it.
* The servlet is placed back into the pool, to be used again. This only happens
after the transaction is complete -- the servlet won't get reused any earlier.
|