I'm being asked to port this into JSPs. I found the following generic drop object example
in Oracle's documentation: A64686-01. It seems to swallow all errors. For
example: exec drop_it('not_a_table','test_table');
does not report any errors. Is it possible to raise PRAGMA exceptions in java?

You are doing just great, and the only thing you have to do is to organize an output for Java err output stream within Aurora Oracle java machine. All you need to do is just to add a couple of strings: