document DB driven application in JSP