Home > Archive > Java Help > March 2006 > Help with java programmin
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Help with java programmin
|
|
| nsastry1@gmail.com 2006-03-26, 7:03 pm |
| Hi all,
I am very new to Java, I have a project to be finished in a w .
Please help me by clarifying my doubts.
1. There is a server and several clients. I should first connect the
client to server. (TCP method)
how do I do that.
2. How do I give command line arguments in the program.
Thanks,
NS
| |
|
|
| Roedy Green 2006-03-26, 7:03 pm |
| On 26 Mar 2006 09:35:21 -0800, nsastry1@gmail.com wrote, quoted or
indirectly quoted someone who said :
>1. There is a server and several clients. I should first connect the
>client to server. (TCP method)
there are many ways to do it. The most common in the browser sends in
an HTTP request . There in no java in the client. Next most common is
a Java Applet generated the HTTP request. Next most common in the
Java Applet sets up a socket connection.
See http://mindprod.com/jgloss/cgi.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
| |
| Roedy Green 2006-03-26, 7:03 pm |
| On 26 Mar 2006 09:35:21 -0800, nsastry1@gmail.com wrote, quoted or
indirectly quoted someone who said :
>2. How do I give command line arguments in the program.
The program running on the server, if you write a minimalist server
such as http://mindprod.com/products1.html#ECHOSERVER, you put them on
the java.exe command line.
See http://mindprod.com/jgloss/javaexe.html
However, for most server applications you use a Servlet Womb of some
sort. See http://mindprod.com/jgloss/servletwomb.html
They each have their own ways of firing them up and passing parameter,
usually with configuration files.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
|
|
|
|