• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to pass parameters frm Midlet to JSP

 
Joel Karimpil
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

plz tell me of a method to pass parameters from a MIDlet to a JSP.
i need to pass two variables to a JSP from a Midlet textbox?
plz tell me how to do it.

Plz Help.
 
PoYi Wu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use HttpConnection of GCF to approach this.
For Detail pls see MIDP2.0 Spec!
 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

It is easy.
You should add your paramaters with Get

URL = URL + "¶1=valupara1" + "¶2=valupara2" side client (midlet).

Side (Server JSP ) you should create a servlet for exemple getparamter("para1"), getparamter("para1") etc..

Good luck

OULD NADIF
 
Joel Karimpil
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Nadif ur idea worked.

the & is the seperator between two parameters.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic