Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Android Security Essentials Live Lessons this week in the Android 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: failing to get correct response from servlet to midlet
 
Similar Threads
failing to get login right from servlet and midlet
Space character in URL error when running midlet
authenticating/validating user name and password
IO Exception
Not getting value in midlet from servlet