why abuse JSP for something it's not meant for?
What you want to do asks for a
servlet to generate in some way a graphic depicting the org chart.
You might call that servlet from a JSP or a static page of course, but it's pretty pointless creating the chart inside a JSP as JSP is meant primarilly for text output not binary output and certainly not for executing business logic like extracting and interpreting database data (showing simple query results is fine IMO, but that's where it should stop).