Ciao a tutti,
sono nuovo del forum è ho un ben quesito.....
Ho un applet processing inserita in una pagina php, nel applet ho dei nodi che possono essere spostati, al mouse release viene lanciato un metodo che invia il nome del nodo e le coordiante alla pagina php che ospita l'applet..... il problema è che non arriva nulla.....

Posto il codice:

JAVA:
public void post(String node, int x, int y) {
URL url = null;
InputStream iStream = null;
OutputStream oStream = null;
OutputStreamWriter oStrWriter = null;

try{
url = new URL(uri);
URLConnection connection = url.openConnection();
connection.setDoOutput(true);
connection.setDoInput(true);

String parametersAsString = "tf=true&id=" + node + "&x=" + Integer.toString(x) + "&y=" + Integer.toString(y);

oStream = connection.getOutputStream();
oStrWriter = new OutputStreamWriter(oStream);
oStrWriter.write(parametersAsString);
oStrWriter.flush();

iStream = connection.getInputStream();
} catch (Exception e){
e.printStackTrace();
} finally {
try {
iStream.close();
oStream.close();
oStrWriter.close();
} catch (Exception e){
e.printStackTrace();
}
}
}


Il PHP che dovrebbe ricevere i paramenti

if(isset($_POST['tf']))
{
$id = $_POST['id'];
$x = $_POST['x'];
$y = $_POST['x'];
}


Sarei grato a chiunque abbia un idea..... o anche una procedura alternativa per fare ciò che ho bisogno.

GRAZIE MILLE A TUTTI!!!