Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Elliott Jones   on Jun 29 In Java Category.

  
Question Answered By: Randall Franklin   on Jun 29

I think you should use servlet anyway.
The interaction will be via InputStream and OutputStream or
ObjectInputStream and ObjectOutputStream

From java  application:
java.net.URL Url=new java.net.URL(S_URL);
java.net.URLConnection UrlConn=Url.openConnection();
java.io.OutputStream os=UrlConn.getOutputStream();
java.io.InputStream is=UrlConn.getInputStream();

From Servlet:
ObjectInputStream ois = new ObjectInputStream(request.getInputStream
());
ObjectOutputStream oos = new ObjectOutputStream
(response.getOutputStream());

You can get and post any data from and to servlet this way

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on How to download a page from a web server? Or get search suggestion and latest updates.


Tagged: