Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class sending data to servlet

 
Ajit Kanada
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
vikinsa
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ajit Kanada
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic