aspose file tools*
The moose likes Java Micro Edition and the fly likes failing to get correct response from servlet to midlet 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 "failing to get correct response from servlet to midlet" Watch "failing to get correct response from servlet to midlet" New topic
Author

failing to get correct response from servlet to midlet

Kenneth Owino
Greenhorn

Joined: Aug 09, 2010
Posts: 23
Hi guys. I made a program where I enter username and password from midlet and send them to servlet which checks the username and password in a mysql database. The servlet is to send a response “yes” to the midlet if the username and password exist or “no” if they don’t. But when I run the program the response recieved on the midlet side that I get on the emulator is always “yes” even with wrong username and password. Please help me find out what could be wrong with either my midlet code or servlet code that makes my reponse not be as would be.

Midlet method for login:


Servlet code:

JCE: Please UseCodeTags
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: failing to get correct response from servlet to midlet