Results 1 to 1 of 1
  1. #1
    rsocor01 is offline Member
    Join Date
    May 2015
    Posts
    1
    Rep Power
    0

    Default Real Time Updating When New Value is Received

    Hi all,

    I'm learning Java programming, so go easy on me. I have a variable that is sent to a txt file in my webserver. I am able to retrieve this variable from the txt file using html and refreshing the webpage shows this new variable. Now, I would like to update the webpage in real-time using Java. In other words every time that my txt file in my webserver receives a new value for my variables, I want the webpage to refresh using Java.

    I am sending the variable values to a webpage using the PHP command _GET. Then the script writes this value to a txt file. Everything works fine, but it doesn't get updated in real time. I have to refresh the browser or do the META=REFRESH every 5 seconds. I don't want to use the META method since I would like to use a Java program to do this.

    Is Java the best way to achieve this? Can you guide me in the right direction? Any sample code will be very helpul.

    Thank you,

    Bob
    Last edited by rsocor01; 05-10-2015 at 07:02 AM.

Similar Threads

  1. JTable Not Updating in Real Time
    By steme in forum New To Java
    Replies: 1
    Last Post: 06-13-2013, 10:04 PM
  2. Near-Real-Time Implementation
    By stooch in forum Lucene
    Replies: 0
    Last Post: 12-08-2011, 03:25 PM
  3. Real Time?
    By RaustBD in forum New To Java
    Replies: 1
    Last Post: 01-01-2011, 02:14 AM
  4. real-time validation
    By atomz4peace in forum Eclipse
    Replies: 0
    Last Post: 01-06-2009, 07:31 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
  •