File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to connect Midlet with Servlet

 
Harish Chandra Durgapal
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Frndz,
I am a new bee to j2me.I want to fetch records from servlet and show it on mobile in tabular form.??
After browsing the forum I got the basic idea abt the above said topic(how to connect Midlet with Servlet).
Can any one please post the code for midp and servlet in this case.

Thanks in advance,
Harish.
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well it really is just two lines of code.

like (HttpConnection)Connector.getConnection("http://www.mysite.com/MySevlet");

then with the HttpConnection get the values back.

I forget if that is 100% correct code, because I am trying to use my memory, and it has been probably about a year since I had to use that code.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic