permaculture playing cards
The moose likes I/O and Streams and the fly likes writeObject to a cookie Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "writeObject to a cookie" Watch "writeObject to a cookie" New topic

writeObject to a cookie

Jes Sie
Ranch Hand

Joined: Jul 24, 2001
Posts: 188
This is my first time posting into this forum.
I'm currently in a Servlet env, and I need to serialise a Serialisable class....and then save that serialised object as String so that I can save it as a Cookie value.
Can someone please give some sample code on how to serialised an object without using FileOutputStream?
Thank you.
- Simon See
-after office hours-

Thank you.<br /> <br />- Jess Sie<br /> <a href="" rel="nofollow"></a>
I agree. Here's the link:
subject: writeObject to a cookie
It's not a secret anymore!