The JSP Files (part 7): Bugs, Beans And Banks (
Page 1 of 7 )
In this week's episode, find out how the JSP Exception object
provides developers with a graceful way to recover from script errors. And
then take a quick tour of the JSP directives you need to know in order to
integrate standalone JavaBeans into your JSP scripts.No programmer, no matter how good (s)he is, writes bug-free code all the time.
And so, most programming languages come with built-in capabilities to catch
errors and take remedial action. This action could be something as simple as
displaying an error message, or as complex as heating your computer's innards
until they burst into flame (just kidding!)
Over the next couple of
pages, we're going to look at some of the error-management techniques available
in JSP, and also demonstrate some of the JSP directives used to integrate
standalone JavaBeans into your JSP scripts.