| Author |
j2me database as text file
|
lala tan
Greenhorn
Joined: Jun 19, 2006
Posts: 2
|
|
|
Anyone has any idea how to retrieve informaton of the text file using a servlet and return the results obtain from the text file to the midlet..?
|
 |
Syam Sathyan George
Ranch Hand
Joined: Apr 26, 2006
Posts: 64
|
|
U mean calling a servlet from a midlet? And then the servlet should return a text file?
|
Syam.Sathyan.George
(My boss is a Jewish carpenter)
|
 |
lala tan
Greenhorn
Joined: Jun 19, 2006
Posts: 2
|
|
|
i mean calling a servlet from the midlet then the servlet get the data from the text file(database) and return the values to the midlet..
|
 |
Syam Sathyan George
Ranch Hand
Joined: Apr 26, 2006
Posts: 64
|
|
OK ,I did the same but backend was php. In that i made an http request from the midlet ; HttpConnection con=(HttpConnection)Connector.open("http://www.bigmoose.com/something.php?name=syam"); InputStream is=con.openInputStream(); now get the length and read from the stream. see the values are appended using a '?';This is done only in GET; this name can be retrieved by (php code):$name=$_GET
|
 |
 |
|
|
subject: j2me database as text file
|
|
|