On sending side, I have written this code:
String message= "name="+str1+"%21";
out = hc.openOutputStream();
out.write(message.getBytes());
String message1 = "age="+str2+"%21";
out.write(message1.getBytes());
String message2 = "place="+str6+"%21";
out.write(message2.getBytes());
out.flush();
and on receiving
servlet i have written:
String m1 = request.getParameter("name");
String a1 = request.getParameter("age");
String p1 = request.getParameter("place");
String mob_no = "Received mobile: '" + mobile + "'";
System.out.println(m1);
System.out.println(a1);
System.out.println(p1);
but nothing is getting stored in p1 and a1.
the whole data is getting stored in m1 only.
can you suggest me. why?how?
I want that data to be stored in p1 and a1 diffferently.
Waiting for a quick reply.