• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

servlet -> midlet null problem

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic