• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Expertise comments on this scenario

 
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am writting a MIDlet which asks the user to enter a name and press the 'Search' command to get the details about that person. The name is sent to a servlet, then the servlet gets the details from the database and sends the details to the phone.In this scenario some times there can be multiple results as well. What I thought was say for instance, if there are 10 results;
* Send the first 5 results as objects of the Employee class which I have designed.
* Put them to a choice group which shows the name and lets the user to select one out of the group.
* Then it displays the details to the user.

If the user wants the next 5 results, he should press the next command to get them. Then the same scenario happens. I was thinking of writting the results to the phone as an object of the class Vector but found out there is no ObjectInputStream is not there in the KVM. I have 5 questions.
1) Is this the proper way of doing this? if not please suggest..
2) How to send the query string to the servlet?
3) Since there is no ObjectInputStream in KVM what are the other options.
4) What is the limit which I can store temporaly the details (kilobytes)
5) How to check the size of my program? Is the size of the .jad or .jar or both?
Thank you very much and anticipating your expertise views...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic