Howdy,
You would use constructions like
ObjectInputStream ois = new ObjectInputStream(request.getInputStream());
String s = (String) ois.Object();

Or alternatively, to write it out,
ObjectOutputStream oos = new
ObjectOutputStream(response.getOutpuStream());
oos.writeObject("test string");

Where request and response above are ServletRequest and ServletResponse
instances respectively.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: bartek [mailto:[EMAIL PROTECTED]
>Sent: Sunday, January 11, 2004 12:06 PM
>To: [EMAIL PROTECTED]
>Subject: Serialization problems
>
>From: "bartek" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject:
>Date: 11 stycznia 2004 17:59
>
>Hi
>could anyone give me an example of objects serialization  and sending
them
>through http connection?
>I made simple application and servlet. Servlet was sending object
String to
>application .
>It was written in jbuilder9 but when I lunched servlet on web wiev
shows
>something like this:
>"No pilot for x-java-serialized-object" [I set content type to
>application/x-java-serialized-object"]
>and SAVE button [I may save object to a file].
>Of course applicattion doesn't get anything.
>I didnt modify web.xml because I don't know what should i add there.
>
>Cheers
>Tom



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to