wood burning stoves 2.0*
The moose likes Java Micro Edition and the fly likes j2me database as text file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "j2me database as text file " Watch "j2me database as text file " New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: j2me database as text file