Taking information from Web page and sending it to a Java Server
Hello,
I am trying to learn a few things with Java and I thought a good way to learn what I want to learn would be to set up the following example.
"A user goes to a web page and is asked a simple question and they have the option of selecting 'yes' or 'no'. Their answer is then sent to someone else's phone."
I thought the way to do this would be to create a Java Server that listens on the web server and takes the answer and passes it on to a program running on an android device that is listening for the answer.
I have set up Tomcat already, looked at JSP and also have the tools to do android programming, but then I had to go to work :( and now I am wondering if there is some clear instructions or coding for what I am doing.
All help would be much appreciated, even if it is just for doing the first bit of the example (I can look elsewhere for android programming).
Thanks
Di_90
Re: Taking information from Web page and sending it to a Java Server
That sounds like standard HTTP server stuff. User opens an HTML page, fills in form, presses submit and the data is sent to the server.
Re: Taking information from Web page and sending it to a Java Server
Ok,
Can someone please explain how I execute java classes using tomcat, or point me to some decent website?
Thanks
Re: Taking information from Web page and sending it to a Java Server
Quote:
how I execute java classes using tomca
Are you talking about servlets that execute on a server? The doc for tomcat should explain how to setup the control files for servlets and where to put the class files.
Re: Taking information from Web page and sending it to a Java Server
Here's the JavaEE 5 tutorial for the web tier (JSP and Servlets).
Here's the JavaEE 6 tutotial (JSF and servlets).