This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet -> midlet null problem

 
Lee Provoost
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 116
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic