On Thu, 19 Feb 2004, E.L. Willighagen wrote:
> Could you try this:
>
> - --- src/org/openscience/jmol/app/JmolEditBus.java 17 Feb 2004
15:36:02
> +++ src/org/openscience/jmol/app/JmolEditBus.java 19 Feb 2004
11:03:48
> @@ -102,6 +102,6 @@ public class JmolEditBus implements CDKE
> }
>
> public ChemFile getChemFile() {
> - - throw new NoSuchMethodError();
> + return (ChemFile)viewer.getClientFile();
> }
> }
This seems to lead into java.lang.ClassCastException ; it seems that what
eventually is returned is
public Object clientFile;
from class ModelManager and the clientFile is not a ChemFile object.
On Fri, 20 Feb 2004, E.L. Willighagen wrote:
> > How to do that then? My docs say that this the way it works if the html
> > request the plugin makes is of type POST. How this is done, is still a bit
> > unclear, and I'm studying it. Basically a socket should be opened to
>
> Indeed... I don't know how this is done in C++, but for other languages there
> exist many tools... so I guess for C++ too...
In this case the Java plugin is the one which makes the request, so the
Java socket class could be used (unless there is a more specialized class
that fits even better).
> Talk to Peter... he has been/is doing similar things...
First I would like to have a "bare-bones" version that works and does
something. Then if it seems that there could be wider use for ghemical-cgi
than just the plugin use, the protocol could be refined.
weekends,
Tommi
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers