dcsimg
How can I receive data sent from a servlet on a MIDlet?
4 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, April 5, 2001 09:10 AM

Sending data to a servlet is easily done using a http connection to the servlet. Can I send data somehow the other way? Any suggestions, tricks?

Thanks!

Re: How can I receive data sent from a servlet on a MIDlet?

Posted By:   james_wong  
Posted On:   Saturday, January 19, 2002 10:17 PM

I am not sure I undertand fully: I know MIDP mandate implementation of HTTP connection only. Others like datagram, socket may or maynot be available.


I have a question need your help: I need to connect to a device(not cradle) thru the serial port of Palm. But I check the API, only Connector.open(String url) and some varieties not including com port are available. Thanks for your attention and help :)

James

Re: How can I receive data sent from a servlet on a MIDlet?

Posted By:   alan_andrea  
Posted On:   Saturday, June 2, 2001 01:14 PM

You can implement a listener function on the midlet
and run it as a seperate thread which simply uses
a while(1) loop to continuously listen for requests ( on port 80)
Basically keep reading from an input stream. The connection
would be opened to the local ip address.

Then the servlet could use the URL class and open
up an http connection to the ip address of the device the
midlet is running on. Then perhaps use the get method ( easier to implement in
this case ) to send name value pairs to the midlet and
subsequently parse those to get the data sent from
the servlet.

Re: How can I receive data sent from a servlet on a MIDlet?

Posted By:   Anonymous  
Posted On:   Wednesday, May 16, 2001 11:41 PM

Hi Christian !

I want to sent an Array Sting from a mobile to a PC.

I think that I have two chances:
1) Send them over the Serial Cable
2) Send them over the Air

What can I realize and how ?

Best regards

Frank Müller

(Are you german ? Then let´s talk in german,ok ?)

Re: How can I receive data sent from a servlet on a MIDlet?

Posted By:   Anonymous  
Posted On:   Wednesday, May 16, 2001 05:14 AM

Dear Christian !

Sorry but I has no Idea for your Problem.
But I think you can help me.
I want to realize a data transfer (String Array) between my Mobile and a Pc.
All Examples I have found doesn´t work.

What can I do ?
About | Sitemap | Contact