Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not getting value in midlet from servlet

 
Kenneth Owino
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends. I'm trying to send data from a midlet to a servlet and recieve back a response from the servlet but I

don't get any value in response. I've tried to print it on command window and it seems to be null yet I expect only

two values "ok" or "error". Please help me check the code and let me know what I should do to get the response right

on the midlet. My code is below:


 
Maneesh Godbole
Saloon Keeper
Posts: 11308
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
catch(Exception e){

}

If I were you, I would start by changing it to
catch(Exception e){
e.printStackTrace();
}
 
Soumya Rout
Ranch Hand
Posts: 49
Java Java ME Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this





 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic