Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes Class sending data to servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Class sending data to servlet" Watch "Class sending data to servlet" New topic
Author

Class sending data to servlet

Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
Hi
I have one class which has some vectors.I want these vectors to send to servlet.How can i do this.I tried with URLConnections...
Can anyone help me
AJit


Thankx
Ajit
vikinsa
Ranch Hand

Joined: Apr 18, 2001
Posts: 46
Hi!,
That class of yours should be a java function which should return vector type. Now if that function class is in your calsspath you can call that in your servlet and get the returned Vector. Vector is all yours. Otherwise you'll have to try some things with serialization.

Originally posted by Ajit Kanada:
Hi
I have one class which has some vectors.I want these vectors to send to servlet.How can i do this.I tried with URLConnections...
Can anyone help me
AJit


------------------
Vikas Aggarwal
Technology Associate
http://www.vikinsa.com


Vikas Aggarwal<BR>Technology Associate<BR>http://www.vikinsa.com
Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
Sorry
Bur i coulnt get u what ur saying...I want to pass vector from a java class to Servlet
Can u explain how to do it?Thanx for reply
Bye
Ajit
 
 
subject: Class sending data to servlet