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.
Is Java the best way to achieve this? Can you guide me in the right direction? Any sample code will be very helpul.