Discussions

General J2EE: Invoking a URL on another server.

  1. Invoking a URL on another server. (1 messages)

    I am trying to invoke a URL ( on another server ) from my struts application. This URL returns a value. How do I capture the return value from the url.'

    Thanks
  2. Open a URLConnection and get the InputStream. The return value should be in the stream.

    InputStream is = new URL("http://...").openConnection().getInputStream();