I recommend that the method making the Class.forName() call not catch the exception, or
perhaps repackage the caught exception into another exception and throw that. Then let the
caller catch the exception. In your case, the code in your JSP would have to catch the
exception and generate html to display an error.
If you do not do this, you would need some other mechanism to propagate the fact that an
exception happened, which means that you are just re-inventing exception handling, and it
will mean a fair bit of coding that you can avoid by simply using the exception
mechanisms.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192265#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...