File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes servlet -> midlet null problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet -> midlet null problem" Watch "servlet -> midlet null problem" New topic

servlet -> midlet null problem

Lee Provoost

Joined: Sep 14, 2003
Posts: 3
i have a servlet and a midlet. the midlet is invoking the servlet, passes a product id using POST
the servlets executes a database query and returns some information (product amount, product name...)
when i invoke the servlet in my browser using: for instance http://localhost:8080/Magazijn/query?product=1 then i see the results on my screen: test:2/Deur/B4/16
when the midlet is invoking the servlet i see in my midlet application: test:null/null/null/null
can anyone help me, i'm quite desperate after four hours of searching...
code servlet

code midlet:

tia lee
Lee Provoost

Joined: Sep 14, 2003
Posts: 3
i found the answer after fifteen hours of searching...
my midlet passed the variables using post... my servlet was importing the variables using get...
how stupid can you be :-)
Gayathri Prasad
Ranch Hand

Joined: Jun 25, 2003
Posts: 116
Lee !! Give it a break ... U found ur probs n fixed it thats great man.. and no mistake is stupid.

Life is a process of continuous learning
I agree. Here's the link:
subject: servlet -> midlet null problem
It's not a secret anymore!