I mean can I open an ObjectOutputStream from the javascript function and
write objects, say a string on it and close the output stream. The servlet
opens an ObjectInputStream, receives these values, does some processing and
opens an ObjectOutputStream and writes the result, say another string , and
closes the ObjectOutputStream. Then the javascript function should be able
to read this serialized object from the ObjectInputStream. This is how I do
it in an Applet. Hope this makes it clear.
Raj
----- Original Message -----
From: Charles Chen
To: [EMAIL PROTECTED]
Sent: Friday, October 20, 2000 6:29 PM
Subject: Re: [Scanned by Yellow Pages PostMaster]
Contact: Tel: 2726 - New Media Systems, 1st Floor South, Queens Walk
I can understand first part of your question, i.e. open a URL connection to
a
servlet, which is easy in JavaScript. I could not understand the second patr
of
your question though. What exactly do you mean by "write objects as an
Applet
can do"?
In general, you can do object oriented programmingin JavaScript with certain
limit. You can even do inheritance in the later releases. Depends on what
you
want really.
Charles
Raj Kumar Jha <[EMAIL PROTECTED]> on 10/20/2000 11:38:14 AM
To: [EMAIL PROTECTED]
cc: (bcc: Charles Chen/YellowPages)
From: Raj Kumar Jha <[EMAIL PROTECTED]>, 20 October 2000, 11:38
a.m.
[Scanned by Yellow Pages PostMaster]
Hi,
Sorry if its too basic/idiotic but I was just thinking if its possible
to open an URL Connection to a servlet from a JAVASCRIPT function and write
objects in the same way as an Applet can do. Anybody ?????
Regards,
Raj
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html