Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

Sending a response back to MIDlet from Servlet

Thread view: 
Saaji - 20 Mar 2006 08:37 GMT
Hi ppl,
       I'm trying to do a MIDlet/Servlet communication via
HTTPConnection using the POST method. I can send a parameter to my
Servlet from the MIDlet but how can I retrieve the information after
processing done by the servlet? I give an out.println("<processed
info>") but it does not seem to return anything.
      Another doubt is can I send images/pics to my MIDlet from the
Servlet as part of a response? If so what all formats does the MIDlet
support?
      Please reply as soon as possible.

Thanks in advance,
Sajida
Darryl L. Pierce - 22 Mar 2006 17:01 GMT
> Hi ppl,
>         I'm trying to do a MIDlet/Servlet communication via
> HTTPConnection using the POST method. I can send a parameter to my
> Servlet from the MIDlet but how can I retrieve the information after
> processing done by the servlet? I give an out.println("<processed
> info>") but it does not seem to return anything.

Return the response as the content of the HTTP response, and have the MIDlet
extract it.

>        Another doubt is can I send images/pics to my MIDlet from the
> Servlet as part of a response? If so what all formats does the MIDlet
> support?

The easiest way is to define your own protocol for packaging that data in
the response content.

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Homepage: http://mcpierce.multiply.com/
"McVeigh's lawyer got him the death penalty, which, quite frankly,
I could have done." - Jon Stewart



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.