File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Objects to capture!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Objects to capture!!" Watch "Objects to capture!!" New topic

Objects to capture!!

karthik ts

Joined: Feb 16, 2001
Posts: 7
here's a problem, really annoying!!
somebody tell me why is'nt the server not able to print the Objects of the Client.
The Client sets the vector object into the stream and the server is ready to capture the object. But unable to find where the hole is in printing the objects captured by the server. Have a look at this below.

(edited by Cindy to format code)

[This message has been edited by Cindy Glass (edited February 17, 2001).]

Joined: Feb 06, 2001
Posts: 6
humm i am not sure but i think you are writing down the Vector object but maby not the element in the vector try
"Object get(int index)"
hope this helps

Sun Certified Programmer for Java 2 Platform
Grant Crofton
Ranch Hand

Joined: Nov 08, 2000
Posts: 154
Yeah, you're passing the whole Vector to the stream - you either need to pass an element of the vector like Rikard said or have the Server looking for Vectors instead of Strings and processing them accordingly.
I agree. Here's the link:
subject: Objects to capture!!
jQuery in Action, 3rd edition