Cheers!
RSR
love your job and not your company;
...because you never know when your company will stop loving you!
connection.setRequestProperty("calleridstatus","1");
I used refresh to refresh the screen just to check if i run the URLConnectionReader.java ,whether the value of the calleridstatus changes to null.But it always displays null.
String data = URLEncoder.encode("calleridstatus", "UTF-8") + "=" + URLEncoder.encode("1", "UTF-8");
SCJP , SCWCD , SCBCD , SCDJWS
preethi Ayyappan wrote:How should i send the parameter to server?
will the below line does not send parameter to the server?
String data = URLEncoder.encode("calleridstatus", "UTF-8") + "=" + URLEncoder.encode("1", "UTF-8");
Thanks
But if i tried to open the url connection of the servlet(Http://localhost:8080/AVM/HelloServlet), the connection is not opened.
What do you mean by that? Is there an exception on the client or server side?
But when i try to open the servlet url like"http://localhost:8080/AVM/HelloServlet?calleridstatus=1", the response code is 405.
Previously i have used "Post" method in URLConnectionReader.java. But after that, I have used "Get" method only. where am i wrong here?
Danger, 10,000 volts, very electic .... tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
|