Sending & Receiving User defined Objects using URL/URL Connection.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sriram_Subbiah
Posted On:   Monday, April 9, 2001 04:25 AM

I'm using Applet as client, Servlet as serverside component and Java Webserver 2.0 as web server. I'm able to send/receive multiple Java Objects such as Integer, String, Date to/from Applet and Servlet. But I'm not able send/receive multiple user defined objects to/from applet and servlet. Is there any way to do this or you have to keep all the objects in a collection object and send it across? Please give me sugestions.

Re: Sending & Receiving User defined Objects using URL/URL Connection.

Posted By:   Tim_Rohaly  
Posted On:   Friday, April 20, 2001 08:38 PM

The class definition file for your user-defined objects must
be accessible from both the client and the server. From
the applet client, they will be downloaded from the web
server in the same manner as all the other user-defined
classes used by the applet. I suspect you haven't put the
.class file on the web server, or haven't put it in the
right place. Check your web server access log to see
where the client is trying to find the .class file.

Re: Sending & Receiving User defined Objects using URL/URL Connection.

Posted By:   Michael_Wax  
Posted On:   Monday, April 9, 2001 08:48 AM

Do your user-defined objects implement the Serializable interface? You should be able to pass any serializable objects back and forth as byte streams.
About | Sitemap | Contact