User 8769aa7b37
01-03-2007 08:58:26
Hi can any body help me , i want to get equations from marvin sketch using java how can i get and how can i insert those equations into the data base
User 8769aa7b37
01-03-2007 08:58:26
User 870ab5b546
01-03-2007 17:02:47
Code: |
<%@ page language="java" %> <%@ page import="chemaxon.util.HTMLTools" %> <% String molstruct = request.getParameter("molstruct"); if (molstruct != null) { System.out.println("Now we can pass this structure to a Java method:"); System.out.println(molstruct); } %> <html> <head> <script src="marvin.js" type="text/javascript"></script> <script> function submitIt() { document.thisform.molstruct.value = document.marvin.getMol("mrv"); document.thisform.submit(); } // submitIt </script> </head> <body> <form name="thisform" action="thisPage.jsp" method="post"> <input type="hidden" name="molstruct" > <script type="text/javascript"> msketch_name = "marvin"; msketch_begin("marvin", 410, 320); msketch_begin("mol", <%= molstruct != null ? HTMLTools.convertForJavaScript(molstruct) : "" %>); msketch_end(); </script> <input type="submit" value="Submit" onclick="submitIt();"> </form> </body> </html> |
User f359e526a1
01-03-2007 18:41:59
ChemAxon 7c2d26e5cf
01-03-2007 21:16:55
User 8769aa7b37
02-03-2007 09:03:44
User 870ab5b546
02-03-2007 14:04:06
User 8769aa7b37
02-03-2007 15:30:51
User 870ab5b546
02-03-2007 20:09:34
Code: |
<%@ page language="java" %> <%@ page import="chemaxon.util.HTMLTools" %> <% String molstruct = request.getParameter("molstruct"); if (molstruct != null) { System.out.println("Now we can pass this structure to a Java method:"); System.out.println(molstruct); } %> <html> <head> <script src="/nosession/marvin/marvin.js" type="text/javascript"></script> <script> function submitIt() { document.thisform.molstruct.value = document.marvin.getMol("mrv"); document.thisform.submit(); } // submitIt </script> </head> <body> <form name="thisform" action="testMarvin.jsp" method="post"> <input type="hidden" name="molstruct" > <table> <tr><td> <script type="text/javascript"> msketch_name = "marvin"; msketch_begin("/nosession/marvin", 410, 320); msketch_param("mol", "<%= molstruct != null ? HTMLTools.convertForJavaScript(molstruct) : "" %>"); msketch_end(); </script> </td></tr> <tr><td> <input type="submit" value="Submit" onclick="submitIt();"> </td></tr></table> </form> </body> </html> |
User 870ab5b546
02-03-2007 20:27:12
Code: |
<script src="/nosession/marvin/marvin.js" type="text/javascript"></script> |
Code: |
<form name="thisform" action="testMarvin.jsp" method="post"> |
Code: |
msketch_begin("/nosession/marvin", 410, 320); |
ChemAxon 7c2d26e5cf
02-03-2007 22:02:38