Link to home
Start Free TrialLog in
Avatar of QLJ
QLJFlag for Afghanistan

asked on

JAVA: running program from website inputs

Hi, I was wondering whether any one advise me on how to do the following:
1) the website receives an input,
2) the input reaches the server, the server opens this java program to do some calculation and send the client the results for display

The thing is I have the program and I have the applet to collect user's info. But am not sure how to link the two toggether!

Thanks!
Avatar of gdrnec
gdrnec
Flag of United States of America image

Could you give me some details?

1.What web server?
2.Do you have the source for the java program?
3.How are you sending the results? HTML/Applet etc..

Geoff
Avatar of Giant2
Giant2

It seems the function of a Servlet. Do you know it?
ASKER CERTIFIED SOLUTION
Avatar of Giant2
Giant2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
These guys are correct about this being the job of a servlet.

This is why I asked for clarification. If you have a server that support servlets then wrap your java code in a servlet, parse the incoming parameters, execute the wrapped code and send back the results on the output stream as HTML.

Geoff
gdrnec,
>These guys are ...
I'm Giant "2", but I'm only 1 person.

:)
Sorry, I saw two posts, thought they were from different people... Maybe you are sooo good you should be twins?
Avatar of QLJ

ASKER

Venabili, could u please move it there for me then? thanks
the server used is likely to be a windows.. but not too sure which version yet.
Is it possile to do testig on a single pc then? doubling as a client and server?
the machine server is windows, Ok. But you need an applServer (answering on your windows machine).

>Is it possile to do testig on a single pc then?
Do you know "loopback"? In the net-world there is a particular ip-address 127.0.0.1 (localhost).
If you use this address when you call your webpage, you direct the querys,request,other to your local Pc.
Avatar of QLJ

ASKER

so i use loopback and have servlets in place on the same comp?
>so i use loopback and have servlets in place on the same comp?
Yes, use the localhost address and start an appServer with your servlets on local computer.