×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    37

    Retrieving Table Data as it is into MIDlet

    Hi All,

    I am getting records from web server using servlet. No of rows are to many i want to display data as string for each row. How can i do that. I know how to display data using bytes. I don't want to get data into bytes. I want to show as string.
    Mayur Dharukiya
    WWW.MAYURDHARUKIYA.COM
    J2ME Team Lead at eTechnolabs.com
    Symbian S60 Ambassador
    Nokia Pilot

  2. #2
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: Retrieving Table Data as it is into MIDlet

    Hi kalki,

    To get the table data from the server , you need to follow some protocol between your client and server , Like send the columns ands rows information in a structured xml format , or define your custom format of rows and columns and send to client ,and at the client side you will receive the same byte stream convert that stream as string depending on your content you can apply the encoding on the incoming data at the time of converting in to string and parse that string to get your rows and columns.

    If you use the xml structure to send the rows and columns of the data to the client , you can use the xml parser to parse the xml. The xml parser will directly accepts your byte stream and give you the string as results.

  3. #3
    Regular Contributor
    Join Date
    Oct 2007
    Location
    Pune
    Posts
    189

    Re: Retrieving Table Data as it is into MIDlet

    Hello,

    You can also form the string inside the Servlet itself.

    Let say after each record row put some special char which can extracted/examine at client side i.e. j2me and get one by one all string in an string array.
    Regards,
    Dinanath


    It's a matter of attitude.

Similar Threads

  1. J2ME encrypt C# decrypt
    By josual in forum Mobile Java Networking & Messaging & Security
    Replies: 13
    Last Post: 2008-10-20, 04:29
  2. Nokia 6600 Socket Server send delay Problem
    By dicson_hu in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-31, 07:37
  3. how i can send data from server to MIDlet through GPRS?
    By vinayakchitre in forum Mobile Java General
    Replies: 0
    Last Post: 2004-07-16, 10:01
  4. passing data to Midlet
    By marjola in forum Symbian
    Replies: 0
    Last Post: 2003-11-20, 10:10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •