• Post Reply Bookmark Topic Watch Topic
  • New Topic

calling servlet from java program

 
Amit Dubey Kumar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi actuly i want to call servlet from java program and also want to get arraylist from servlet not to from java

any body tell me
thnx
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java provides the HttpUrlConnection class that you can use to make HTTP requests from a Java program.

If you'd like an even higher level library, take a look at the Jakarta group's
httpclient library.

It is possible to stream an ArrayList, providing all the objects contained within are serializable but you will probably save yourself some headaches if you can get your servlet to return something textual like XML, JSON, or some other type of delimited text.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!