Perry Smith

Java Questions & Answers

Home / Java Q & A Archive Page 3 / Java Q & A Archive

Networking
 Saturday, 30-Jan-99 11:56:20

      128.139.197.17 writes:

      Hello,
      I have a java application which gets data
      from the standard input, process it, and outputs
      the results to standart output. I want to modify
      this application:
      - a user will open a URL in which there will be
      an applet which is used to enter the data.
      - The application will be uses as a server-side,
      and will process this data.
      - The results will be sent to a new URL which
      the current URL will "jump" to.
      This all sounds like a "natural" cgi-script
      and plain HTML forms/tags utility, but I would
      like to do all of this using JAVA.
      My main problem, is that when the user gets to
      the URL which contains my applet, and the web
      browser is not on the same machine as the server
      is running on (let's say - in another country),
      then I am wondering:
      1) Must the applet source files be on the
      machine of the browser?
      2) How will the applet know where to look for
      the server?
      3) In what cases, even if the applet has the
      IP Address and the port number, data will
      not be able to transfer from/to (firewall)?
      what can I do then?

      Thank You

Response
Re: Networking
Monday, 01-Feb-99 19:48:30

152.202.90.75 writes:

What you'll have is an applet as an front-end interface for your user. The applet should contact a servlet or script. The IP address and port will have to be hardcoded into the applet or stored in a file which can be read by the applet (which will require special permissions). As far as bypassing firewalls, your clients will have to use proxy servers.

MikeD


Home / Java Q & A Archive Page 3 / Java Q & A Archive