This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem using http post over j2me  RSS feed

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I am trying to use j2me client to post data to a servlet using Post type.
Now the problem is that I am able to hit the servlets doPost method, However the data sent over to https request is not being captured and every time I am getting null.

What I am doing is





However I am getting no data on the server side.
 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the problem manifests itself on the server side, wouldn't it make more sense to post that code?

It looks like there's a "&" missing in front of "submit", and what's the "?" doing in front of "username"? POST data is not an URL.
 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..
try with this .....





Regards

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!