If chart is being displayed in servlet and you want to include that in your jsp
simply use following code in your jsp page
<img href="your servlet url" widht="500" height="500">
Better thing is to integrate with spring and configure the connection pooling in spring configuration file and inject connection object to struts2 action classes