If you are using a sendPOST method of deliver like O'Reilly's example, then
you cannot mix primitive streams with object streams.
The sendPOST requires an Object to be send and received.
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Danny
Rubis
Sent: Saturday, June 10, 2000 8:30 AM
To: [EMAIL PROTECTED]
Subject: Re: problem sending data from servlet to applet
Hey!
Some things to check:
Is Ethics object serializable?
You can not mix output streams. Well I am pretty sure you can't. So don't
use
a
a 'writer' before you use an ObjectOutputStream. You can research this in
the
archive. There was a discussion about this and someone said 'nadda'.
Sans adieu,
Danny Rubis
Andrew Dingfelder wrote:
> Hi everyone,
>
> I'm having trouble sending data from a servlet to an
> applet as an object.
> Can anone provide me a clue ?
>
> I can successfully send the data as a string, but would
> rather use an object.
>
> I seem to get a Null exception if I use the commented
> code in the examples below
> (I have included urls to the code, as well as a
> semi-working verion of the code)
> (I'll try & respond with the actual error message when I
> get home)
> ___________________________________________
>
> servlet code:
>
> http://24.25.16.175:8080/src_ethics.html
> ____________________________________________
>
> applet code
>
> http://24.25.16.175:8080/src_viewer.html
> ____________________________________________
>
> overview of what I am doing (a flowchart of the process)
>
> http://24.25.16.175:8080/flow.gif
> ______________________________________________
>
> semi working demo, the cookies don't seem to be working
> right
> (they are not settign the date right
> & the hash is not remembering the questions right)
> The DB only has 3 questions entered into it,
> & one is just some numbers instead of text
>
> http://24.25.16.175:8080/EthicsSimulation.html
> ______________________________________________
>
> Thanks for any tips anyone can give me to get the object
> working...
>
> Andy D
>
> Andrew Dingfelder
> Computing As You Like It
> 108 Blanchard St., Raleigh NC 27603
> [EMAIL PROTECTED]
> Phone (919) 828-9824
>
___________________________________________________________________________
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