Results 1 to 5 of 5
  1. #1
    Di_90 is offline Member
    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    Default 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

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,418
    Rep Power
    25

    Default 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.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    Di_90 is offline Member
    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    Default 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

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,418
    Rep Power
    25

    Default Re: Taking information from Web page and sending it to a Java Server

    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.
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,014
    Rep Power
    20

    Default 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).
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 3
    Last Post: 11-19-2011, 03:40 PM
  2. Replies: 4
    Last Post: 09-29-2011, 01:17 PM
  3. JApplet retains information after leaving page
    By Ambergahill in forum New To Java
    Replies: 4
    Last Post: 12-20-2010, 12:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •