Money Mgt Calculator
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Mobile » Java Micro Edition
 
RSS feed
 
New topic
Author

How can I recieve data from servlet on j2me application?

Nguyen Long Hoang
Greenhorn

Joined: Feb 02, 2010
Messages: 1

Hello everybody!
Please! answer this question for me .

I need to recieve data (e.g. a String array) from a servlet which interacts with mysql on j2me application.

Can I do that??

thanks so much.

This message was edited 1 time. Last update was at by Bear Bibeault

Ulf Dittmer
Sheriff

Joined: Mar 22, 2005
Messages: 26723

Assuming you're talking about a CDC device, then the java.net.URLConnection is available, so you can use straight HTTP.

If you're asking about CLDC, then you'll need to fudge something with the classes in the javax.microedition.io package which -if I interpret the javadocs correctly- implement something akin to sockets.

Java web chartsImageJ PluginsSpecification URLsJava FAQs
Aleksandar Babic
Ranch Hand

Joined: May 30, 2007
Messages: 59

If it's simple string array why don't you just print it to output as a string with delimiters and than parse it on phone.
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Mobile » Java Micro Edition
 
RSS feed
 
New topic
Money Mgt Calculator