Oops.. that should say ObjectInputStream and ObjectOutputStream, sorry.

Justin


Quoting Justin Wells ([EMAIL PROTECTED]):
> Quoting Bill Rosenberg ([EMAIL PROTECTED]):
> > I am trying to avoid using hidden variables in my HTML pages to save
> > state of my servlets. I know I can use the HTTP session to store this,
> > but my client wants to avoid this overhead. I thought about taking a
> > class and serializing the data into ASCII and storing that into one
> > hidden variable instead of many. Can someone lend some assistance in how
> > to serialize data in Ascii and then unserialize this Ascii data back
> > into a Java class. I tried using 'URLEncoder.encode' and
> > 'URLEncoder.decode' with no luck. Thanks in advance.
>
> I think the cost of serializing and unserializing your data to something
> that is transmitted over the network is likely to outweigh the cost
> of using an HTTP session.
>
> Anyway, to answer your question what you want to do is look at the
> DataInputStream and DataOutputStream.
>
> Justin
>
> - - -
> WebMacro Servlet Framework
> http://webmacro.org
>
> ___________________________________________________________________________
> 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

Reply via email to