Essentially, the question I am asking is similar to this question. However, these Q/A's were of little value to me.
Firstly, there are several people saying that it is impossible to pass a value from a clientside language to a serverside language. However, I know that this is untrue, since I know that it is possible to pass javascritpt (clientside) variables to php (serverside) variables.
Secondly, my need to do this is based on trying to retrieve data from a 3rd party website, to be processed by my program, which will not attempt to return this data to the origional web page. Instead it will be returned to a different location. So, suppose I am retrieving the data required from their webpage using javascript and storing it within a Javascript variable, say var myData = *my required data*
and I wish to create a Java program which accepts this data as an input, how would this be done?