aspose file tools*
The moose likes Java Micro Edition and the fly likes how to pass parameters frm Midlet to JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "how to pass parameters frm Midlet to JSP" Watch "how to pass parameters frm Midlet to JSP" New topic
Author

how to pass parameters frm Midlet to JSP

Joel Karimpil
Ranch Hand

Joined: Oct 04, 2004
Posts: 53
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.


Yours Truly,
Joel Karimpil
PoYi Wu
Greenhorn

Joined: Apr 07, 2004
Posts: 5
You can use HttpConnection of GCF to approach this.
For Detail pls see MIDP2.0 Spec!
Ould Nadif
Ranch Hand

Joined: Jan 21, 2004
Posts: 184
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


We are ones that build the world, thus build it well.
Joel Karimpil
Ranch Hand

Joined: Oct 04, 2004
Posts: 53
Thank you Nadif ur idea worked.

the & is the seperator between two parameters.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to pass parameters frm Midlet to JSP