This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java Micro Edition and the fly likes Not getting value in midlet from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Not getting value in midlet from servlet" Watch "Not getting value in midlet from servlet" New topic
Author

Not getting value in midlet from servlet

Kenneth Owino
Greenhorn

Joined: Aug 09, 2010
Posts: 23
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

Joined: Jul 26, 2007
Posts: 10268
    
    8

catch(Exception e){

}

If I were you, I would start by changing it to
catch(Exception e){
e.printStackTrace();
}


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Soumya Rout
Ranch Hand

Joined: Aug 06, 2009
Posts: 49

Try this





 
 
subject: Not getting value in midlet from servlet