Can this be done??

Hello,

I don't know if this can be done or not but here it is:
Part1)
On the internet there is a webpage that has a Counter that is set up to display a money total. The counter incerments and uses a Java Applet for this. We would like to have our own Java Applet and counter "or something" that will also incerments on our Webpage "real-time". We would like to keep track of the incerment, so everytime it goes up our counter also goes up.

Part2)
From this we would like to have that incerment "Java Applet" control a counter in C++. Our C++ program than does the appropriate thing.

Thanks for any suggestion on this

Clinton
THanks
Clinton
Clint112799Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dhymesCommented:
Probably a better way, but since I am not a web developer I would give this a try.

Create a storage location on the Server Side, file, database, what ever your WebApp is using. Create a process on the server side that moniters some port that is known to the JavaApp. When it is time to increment to counter, have the JavaApp establish a connection with the server via a socket connection. Now the server side can do what ever you need it to do, i.e. Call your C++ application ..... or what ever.

There are several other ways to do this, it just depends on how much control you need with the value of the counter.

Regards,
Dave
0
heyhey_Commented:
1. yes it's possible. :)
2. you'd better use server side CGI script (.exe / Perl / PHP / servlet) and your client applet will make direct HTTP requests (GET or POST) to that CGI script. this way your solution will work behind firewalls that does not allow direct socket connections.
0
jamesb111Commented:
i guess hey hey has the answer for you anyway an applet thing would look real smart ..
;-)
0
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Clinton112299Commented:
Hey Hey,

Can you please provide more information so I know exactly what I should post in the CGI. Would you know where I can find information on this?
0
Clint112799Author Commented:
Hey Hey,

Sorry I logged on under the wrong user name so here it is again:

Can you please provide more information so I know exactly what I should post in the CGI. Would you know where I can find information on this?

By you'll thinking is this something we can do without a lot of headacks.

Thanks
Clint
0
shlomoyCommented:
Clint/Clinton
I think you should drop one of the users - or at least don't talk about them in public. It's against EE policy to allow users have more than one account.
0
heyhey_Commented:
your applet can make normal requests

URL onStartUrl = new URL(getCodeBase(), "/cgi-bin/script?mode=start);
InputStream is = onStartUrl.getInputStream();
// read start information from InputStream

URL infoUrl = new URL(getCodeBase(), "/cgi-bin/script?mode=info);
InputStream is = onStartUrl.getInputStream();
// read the curent info from InputStream

....

on the server you have to handle these requests, update the server info and generate the appropriate answers.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Clint112799Author Commented:
Thanks,

Sorry EE I didn't know that. I'll drop my home account.

THanks and sorry again

Clinton
0
Clint112799Author Commented:
Thanks
Hey Hey I'll try that

Clint
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.