The following examples send a structure to a JSP script that generates an image and displays it in the web browser.
To run the examples, please follow the next steps:
.jar extension) of the Marvin Beans or JChem package under
Tomcat's lib directory.
marvin directory under Tomcat's
webapps/examples/jsp/marvin
examples/image-generation
directory of Marvin Beans to Tomcat's
webapps/examples/jsp/marvin/ directory.
show_image3.jsp and show_image4.jsp
to refer to that directory in the path to caffeine.smi
POST method for sending
a SMILES string and the image format.http://localhost:8080/examples/jsp/marvin/show_image1.html(source | online version)
GET method and URL encoding
for sending a SMILES string and the image format.http://localhost:8080/examples/jsp/marvin/show_image2.jsp(source | online version)
GET method and URL encoding
for sending the name of the file (containing the
structure) and the image format.http://localhost:8080/examples/jsp/marvin/show_image3.jsp(source) | online version)
http://localhost:8080/example/jsp/marvin/show_image4.jsp(source | online version)
http://localhost:8080/examples/jsp/marvin/show_image5.jsp(source | online version)