• Post Reply Bookmark Topic Watch Topic
  • New Topic

failing to get correct response from servlet to midlet  RSS feed

Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
no wonder he is so sad, he hasn't seen this tiny ad:
Why should you try IntelliJ IDEA ?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!