The following example is a JSP page that generates an Excel Sheet with Marvin generated structure images and structure data.
To run the examples, follow the steps below.
Install MS Excel 2000 or higher version.
Install Tomcat. (of course, the examples also run under other servlet servers.)
Copy all JAR files (files with .jar extension) of the Marvin Beans or JChem package under Tomcat's lib directory.
Create the marvin directory under Tomcat's webapps/examples/jsp/marvin
Copy the generate_image.jsp file from the examples/image-generation directory and the molsheet.jsp file from the examples/excelsheet-generation directory of Marvin Beans to Tomcat's webapps/examples/jsp/marvin/ directory.
Start MS Excel and open the following link: http://localhost:8080/examples/jsp/marvin/molsheet.jsp
If you have cocoon or other XML publishing framework installed under your servlet server you can open the http://localhost:8080/examples/jsp/marvin/molsheet.jsp link from your browser.