We have a CGI based web report framework written in C/C++. The CGI client connects with proprietery code which in turn connects to database.

We are looking for a better Java based replacement for CGI due to performance, maintenance and probably security factors. Can Jasper connect with the proprietery code? Or will Servlet be enough to replace CGI client? Can jasper run on Tomcat?

Any help is appreciated.