Upon searching in dreamhost wiki (http://wiki.dreamhost.com), I got these results on what youare looking for.
Dreamhost has Java installed, but you cannot run JavaServlets nor JSP.
I hope this answers your question.
Dreamhost has issues with it’s CPU usage (which is called the CPU Minutes) which is basically one of the reasons why JavaServlets are not allowed.
Register with the Promo Code [color=#CC0000]HOT75[/color] and get a great [color=#00CC00]$75 OFF[/color] to any DreamHost Hosting service in monthly and yearly plans!