hi i'm using this code from android to send a json to a servlet what works fine, and i was wondering how i could i send a different tag ie Tag2 to the servlet side, but still be able to handle the Tag1 safely on the servlet side
//aproximate desired code //android side
...
url = new URL("http:// 10.0.2.2:8080 /Server/goTo?Tag1="+JSON);
...
url = new URL("http:// 10.0.2.2:8080 /Server/goTo?Tag2="+JSON);
...
//servlet side
...
jsonRequest= new JSONObject(request.getParameter("Tag1"));
...
jsonRequest= new JSONObject(request.getParameter("Tag"));
...