How to POST java serialized object to a zope(python) script?
Hello, I am trying to find a way to pass data from a java applet into zope. Don't know how to get the serialized object into the zope python script. With html forms I'd just use container.REQUEST, but it doesn't work in this case. Any help is appreciated. Thanks, -- Gary Zhu
On Mon, 2005-01-31 at 19:26 -0600, Gary G Zhu wrote:
Hello,
I am trying to find a way to pass data from a java applet into zope. Don't know how to get the serialized object into the zope python script.
With html forms I'd just use container.REQUEST, but it doesn't work in this case.
Any help is appreciated.
You should build a test case with known data - if nothing about the internals is documented somewhere - then use tcpflow or ethereal or similar tool to look at the data as it gets transmitted. Provide a link to the snap and somebody here could have a look and give you hints. Reagrds Tino
-- Tino Wildenhain <tino@wildenhain.de>
I got it to work now. In the applet, after serializing the object into byte array, I converted it to string. Then ran it thru urlencoder before passing it to zope. Now I can get the data out from my zope script with container.REQUEST.form['xxx'] Thanks to all who helped. Gary G Zhu wrote:
Hello,
I am trying to find a way to pass data from a java applet into zope. Don't know how to get the serialized object into the zope python script.
With html forms I'd just use container.REQUEST, but it doesn't work in
this
case.
Any help is appreciated.
Thanks, -- Gary Zhu
Gary G Zhu wrote:
Hello,
I am trying to find a way to pass data from a java applet into zope. Don't know how to get the serialized object into the zope python script.
With html forms I'd just use container.REQUEST, but it doesn't work in this case.
Any help is appreciated.
Thanks, -- Gary Zhu
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
id achieved that by calling a javascript from java that set a field on the form, and then submitting the form. Robert
On Mon, 2005-01-31 at 19:26 -0600, Gary G Zhu wrote:
Hello,
I am trying to find a way to pass data from a java applet into zope. Don't know how to get the serialized object into the zope python script.
With html forms I'd just use container.REQUEST, but it doesn't work in this case.
Ah, and last not least you can send normal post requets with java applet too as well as you can use XMLRPC from Applet to Zope which has some advantages. Regards Tino
participants (3)
-
Gary G Zhu -
robert -
Tino Wildenhain