Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to transfer data from mobile to servlet

 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
here i am developing a chat prog in j2me...
so i want to know how can i send the data which is typed in mobile... is transfered to servlet.....
and also how can recipint recieve the msg... from the servlet...
plz any body help.....
thanks in advance
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well there are a few ways.

1) has the Servlet call keeping the session alive until there is a response. (Not really a good way) (Create an HTTPConnection, pass the entered data as a parameter, adding it to the end of the URL String

2) use the SMS messaging API. Not really real time, but like e-mail. But saves connection time, but will probably cost per message by the provider, can be expensive.

3) Use one of the Chat programs already created for Cell Phones (You don't have to recreate anything here).

There are more, but none that I can think of off the top of my head.

Mark
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello sir,
Thaks for ur suggestion but i want to know the address of the site
that where can i found the chat application for mobile... if u know plz send me the link...
thanking u sir,


regards
cinux
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did a Google search on "J2ME Chat Program" And got these two links. There are lots more, just do the same search and see what you get.

Chat 1

Chat 2

Good Luck

Mark
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello sir,
i am very much happy for ur reply msg ...thanks for ur reply....


but why i've asked is i just really want to see the interface of the program... thats all i dont want to use other's application...

i want to do it my self... and more over i've completed the interface..for the chat application... just now i am able to connect it .. to the local host server(tomcat)... but i am getting an error msg saying that 402:---bad request
what should i do for this???

the same error occured in the demo prog... which comes with sun one ME 4 and wirless toolkit..

if u have those application's plz refer to demos/http in that choose localhost:8080 from menu...

so plz solve this proble....


thanks in advance...


cinux
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir here is specifically showing my prob...
plz help me ...

the eroor msg


Initializing class:
'com/sun/midp/io/InternalConnector'com.sun.midp.io.kvem.http.Protocol@ea0ef881Exception: java/lang/ClassNotFoundExceptionInitializing class:
'com/sun/cldc/io/NetworkConnectionBase'Initializing class: 'com/sun/cldc/io/j2me/socket/Protocol'Exception: java/lang/ClassNotFoundExceptionException: java/io/IOExceptionException: java/io/IOException
java.io.IOException: Error initializing HTTP tunnel connection:
HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Date: Wed, 27 Apr 2005 17:16:29 GMT
Server: Apache-Coyote/1.1
Connection: close


i think u'll surely help me ....




cinux
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic