File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet -> midlet null problem" Watch "servlet -> midlet null problem" New topic
Author

servlet -> midlet null problem

Lee Provoost
Greenhorn

Joined: Sep 14, 2003
Posts: 3
hey,
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
Greenhorn

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 :-)
grtz
lee
Gayathri Prasad
Ranch Hand

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

---------------------------------------------
Life is a process of continuous learning
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet -> midlet null problem
 
Similar Threads
Midlet & Servlet(Tomcat) Connection Problem
Deadlock Problem - Please Help
Midlet & Servlet(Tomcat) Connection Problem
Help: Potential deadlock in commandAction() ?
the problem abt communication between serlvet & midlet