File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

j2me database as text file

 
lala tan
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
U mean calling a servlet from a midlet?
And then the servlet should return a text file?
 
lala tan
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic