Http result returns the HTML, just missing the text

I have this project pretty much what I'm after, just missing something.

To simplify the project, I have a Blackberry app that queries a Web server.  The Web server don't some code on the server side and then outputs the results.

My Blackberry app receives the response using ByteArrayOutputStream and InputStream.

I then check the ContentType data returned, and if I find "text /" I displays the results in a RichTextField.

The problem is that the results from the Web server are not clear, but HTML instead, naturally.

Is it possible for me to get the rendered HTML results?  So rather than receive current:



Test


Hello World!


I'm seeing only:

Hello world

Thanks for the pointers!

Nothing on the client side. When the server writes data... say do not write html elements, write directly the that you want on the client.

Tags: BlackBerry Developers

Similar Questions

  • Simple HTTPService which returns the text

    I have made through Google and the documentation for it but still can't find what I want. Basically I have a php file that takes some of the entries, it treats and returns the text, I already know how to transfer the data to the flex php file, what I'm trying to do is get the text that returns the file and put it in a label in my flex application.

    So far, I have a function that the httpservice calls when the event "train", but so far, I still havn't found away to get the actual text that is returned, can someone tell me how to get this text the HTTPService?

    Just a note, I'm using the httpservice mxml form.

    The only thing is your text that is returned from php to be in xml format. Then, print your query result to XML first. And then parse through the xml in flex by using something like this:

    I created a script that analysis automatically any how MySql query that I throw at it as xml. There are some constraints you must follow while using it however.

    The caller script should have:
    $Query = a mysql query
    $queryName = 'name you give it. " This is also equal to the XMLRootName
    $tableName = 'name you give it. " This will correspond to the XMLResultSetName and doesn't really tell the table you are querying, but rather a generic name that you give the results table.
    $Result = mysql_query ($Query); the $Query is simply the veriable calling the actuall mysql query.
    include ('xmlParser.php'); place after the $Result statement.

    <-----------xmlParser.php------------>
    <>
    create the root node;
    $Return =""." \n"." \n » ;
    $Return. = «<$queryName>». » \n » ;

    treat a line at a time
    While ($row = {mysql_fetch_assoc ($Result))}

    Add node for each line
    $Return. = « <$tableName>». » \n » ;

    Add a child node for each field
    {foreach ($row as $fieldname-online $fieldvalue)

    $Return. = « <$fieldname>». "" $fieldvalue ". »«. » \n » ;

    } / / foreach

    $Return. = " «. » \n » ;
    } / / While

    $Return. = "«. » \n » ;

    ?>

    Then use the dataProvider to display resutls in Flex.

  • Reading number of XML nodes in a document &amp; amp; return the result in the text member

    Hi all

    I wonder if you can help me with the following:

    I want to read the number of nodes in an XML document and return the result in a text cast member. That's what I do so far, but he refuses to work

    Yes, my mistake. That should have been:
    --
    tList =
    nNodes = count(tList[1])
    sText = «»
    Repeat with i = 2 to nNodes
    tText = tList [1] .getPropAt (i)
    sText = sText & tText & RETURN
    end repeat
    -Remove rear BACK tank
    remove the last tank of sText
    -Place ALL the text in a text member
    Member ("test1"). Text = sText
    -- ...

  • Failed to retrieve the results of the text index

    This is the value that I am recovering from a column:
    ABCD - one two three - Washington, DC Seminar program

    But it seems that no matter what as soon as I type something after "abcd - o" I don't get any results, the research is generic on the right side (open ended research) so I'm expecting that he would return the complete row... I have tried with and without the whitespace attribute and both will not return the full range. Enter the entire string in the query returns no results. Any ideas here? What I really want is to make sure any characters are stored in the DB that the query returns the results.


    OK this is what I set up:


    BEGIN
    CTX_DDL. DROP_PREFERENCE ('my_lexer');
    ctx_ddl.create_preference
    ("my_lexer",
    "BASIC_LEXER");
    ctx_ddl.set_attribute
    ("my_lexer",
    "printjoins."
    '.-_~@#$%^&*(){}[]=\;><+ ');
    CTX_DDL. SET_ATTRIBUTE
    ("my_lexer",
    "punctuation"
    '!?');
    CTX_DDL. SET_ATTRIBUTE
    ("my_lexer",
    'space ',.
    '-._');
    END;
    /

    CREATE
    TABLE "MYWORDS".
    (
    VARCHAR2 (200 BYTE) "TEXT".
    ) ;
    CREATE
    INDEX 'MYWORDS_CTX' ON "MYWORDS".
    (
    "TEXT".
    )
    INDEXTYPE IS "CTXSYS. "' CONTEXT PARAMETERS ' ('lexer my_lexer
    LIST OF WORDS EMPTY CTXSYS. EMPTY_STOPLIST');


    Ora112 > SELECT TOKEN_TEXT FROM DR$ MYWORDS_CTX$ I;

    TOKEN_TEXT
    ----------------------------------------------------------------
    -
    ABCD
    D.C.
    ONE
    PROGRAM
    SEMINAR
    THREE
    TWO
    WASHINGTON

    9 selected lines.


    Ora112 > SELECT * FROM MYWORDS WHERE CONTAINS (TEXT, ' ABCD - where ') > 0;

    TEXT
    --------------------------------------------------------------------------------------------------------------------------------------------
    ABCD - one two three - Washington, DC Seminar program

    Ora112 > SELECT * FROM MYWORDS WHERE CONTAINS (TEXT, ' ABCD - one %') > 0;)

    no selected line

    Ora112 > SELECT * FROM MYWORDS WHERE CONTAINS (TEXT, 'ABCD%') > 0;

    TEXT
    --------------------------------------------------------------------------------------------------------------------------------------------
    ABCD - one two three - Washington, DC Seminar program


    Ora112 > SELECT * TO MYWORDS WHERE CONTAINS (TEXT, "ABCD - one two three - Washington, DC seminar program %') > 0;")

    no selected line

    Ora112 >

    Ora112 > SELECT * FROM MYWORDS WHERE CONTAINS (TEXT,'{ABCD - one two three - Washington, DC seminar program %} ""}) > 0;

    no selected line

    Ora112 >


    Thanks for your time,
    Justin

    You should never feed entry user directly in the CONTAINS clause, at least that your users are perfectly familiar with the Oracle Text syntax, which is rarely the case.

    This topic has been discussed on this forum before, or you could look at this post Tom ask:

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:2350583868107309:P11_QUESTION_ID:11471734233362

  • Blue border light to return the text

    I rode the text around a PNG image. I placed inside the text box and set the margins. However when she spotted in the browser, there is always a light blue border around the PNG. I tried the other PNGs and placed in various areas of text with the same result. When the PNG is not placed in a text box, it is not a boundary when I preview the it.

    How can I keep the PNG with text and without the border build-up?

    Alejandra Hello,

    This is because you must have used a system font in the text box.

    When you use system font Muse converts text into an image after exporting so it converting the text full box in which .png is placed

    Change you the font system for a few other fonts , it will solve the problem.

    Hope that works!

    Thank you

    Prabhakar Kumar

  • RegExp return the text inside quotes

    I'm looking for a way to return only what is between the text in a column or a period if it is between two sets of quotes. There could be any number of occurrences in the text of the column.

    "ENC". "CHECKOUT_TIME" [DATE, 7], "ENC" "." " PAT_ENC_CSN_ID "[NO.22],"ENC"". "" CHECKIN_TIME "[DATE, 7].

    Becomes

    "ENC". "" CHECKOUT_TIME ""ENC ". "" PAT_ENC_CSN_ID ""ENC ". "" CHECKIN_TIME ".

    It's possible with a regular expression?

    Hello

    I don't know if this can be done with a single regular expression.

    Here's a way that uses two functions:

    SELECT str

    REGEXP_REPLACE (REGEXP_SUBSTR (str

    , '".*"'

    )

    , '("[^"]*"(\." [^"]*")?) [^"]*'

    , '\1'

    ) AS new_str

    FROM table_x

    ;

    REGEXP_SUBSTR eliminates materials without quotation marks before the first quotation mark and after the last quotation mark double.

  • BreakFrame.jsx and return the text around objects

    Hello, I like you would break a frame. I use the BreakFrame script.

    It works when I choose "Ignore the text of not dress", but when I choose 'Object jump' with 3mm at the bottom, this copy of the script text and do not break.

    I have 2 screenshots to explain:

    without.jpg

    with.jpg

    Thanks a lot for your help!

    Hello! I hope that this script can help you:

    http://www.Adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_US&EXTID=2486 534

    Best wishes

    Sergey

  • function returning the text validation error

    Hello

    I have a page where I can insert/update user, organization, responsible.
    Organization can be nullable.

    A single user can both be responsible for an organization.

    To check this responsible for validation, I made a function that returns the error of validation of text as follows:

    BEGIN
    FOR c IN (SELECT usr_spa
    OF kpi_users
    WHERE usr_org_id =: p22_usr_org_id
    )
    LOOP
    IF upper(:p22_usr_spa) = upper('YES') and upper (c.usr_spa) = upper('YES')
    THEN
    RETURN 'user is already responsible for this organization' |'. ' ;
    END IF;

    END LOOP;

    END;

    The validation works fine.

    But it won't when I want to insert a new user, without attributing it to an organization.
    I get the following message:

    ORA-01722: invalid number

    Cannot run the validation of the "body of the function return text' ERR-1024.

    Can someone please help me solve this problem?

    Thank you

    Hello

    The user selects a body in a select list? If the default value is considered "null %"? If so, you could modify the test to the IF: P22_USR_ORG_ID <>'% "| 'null %' THEN

    Andy

  • return the text on the breakpoint

    Hi all!

    Possible wrap text on breakpoint of difference?

    For example:

    The breakpoint of 960 px text looks like:

    I 40 anni dopo I livelli di collagen.

    Elastina e diminuiscono acid Ialuronico in modo significant

    a dell'invecchiamento causa

    --------------------------------------------------------

    The breakpoint of 480 px text looks like:

    I 40 anni dopo

    I have livelli di collagen,

    Elastina e acid Ialuronico

    diminuiscono in modo significant

    a dell'invecchiamento causa

    ----------------------------------------------------------

    I'm not going do automatically, (like muse can do in fluid text mode).  I can change for example the color, the size, but when I send encapsulates the text he made on all breakpoints!

    It is possible might wrap the text as I want the breakpoint difference?

    Thank you!

    In theory it is possible, although there is a huge difference between 960 px and 580 px!

    Set your text box size None:

    Then put in the form the text field for the 480 px breakpoint after clicking on the button below:

  • How to operate the user enter value query and get the result on the text element

    Hello

    I'm really beginning to JDeveloper and ADF, I want to execute the query below, before with forms, I just add: TEXT_NAME to enhance the users entries, what should I do now with ADF, really unclear question and I would be grateful all help with that.

    Select
    NVL (min (substr (a.StartTime, 1, 8)), 0) Service_Start_Time, nvl (sum (a.sessionvolume), 0) Total_Traffic_KB
    Of
    aaa_bill one
    where
    msid =: TEXT_ITEM
    and starttime > = (select max (fee) FROM aaa_bill
    where msid =: TEXT_ITEM and accountreason = 5);

    You can use a form of parameter ADF for this requirement.
    https://blogs.Oracle.com/Shay/entry/combining_multiple_queries_and

  • return the text in the interactive report

    Hello

    I have a column in a table called comment. It is VARCHAR type and length is about 200. When displaying it in an interactive report, it is displayed on a single line. I want it display on multiple lines.

    How can I do?

    I am able to do this in the normal report by adding < span style = "display: block;" Width: 200px; white-space: normal "> #COLUMN_NAME # </span > expression HTML formatting of column."

    But there is no option like that in interactive reports. So, how to make interactive reports?

    Thank you.

    You can try this: word wrap questions about Apex

    Martin
    -----
    [http://apex-smb.blogspot.com/]
    [http://apex.stackexchange.com/]

  • You want to include spaces in the results in the text field.

    Hi all

    Please help with possible means.
    I want to ge the output of a test classified in the results as such.
    I need to get a < space > then the names.
    for example I want < space > < space > and then test on the ground in my report of responses.
    Currently, when I give ' ' and concat it with the name column it provides two spaces at the beginning.

    Other ways to do it.

    Kind regards
    Bla

    Hi Kim,

    Try this, go to the properties of column-> change-> Dataformat treat text as drop down-> text gross (do not break spaces).
    This will allow spaces.

    Thank you
    Vino

  • record the result on the text field

    I have a few results

    and I want to see that this translates on stage

    in the Flash IDE so I created dunamique text with instance name resultText_txt, in the behavior, I used multiline

    and I want to see, for example 3 results like:

    result 1

    result 2

    result 3

    so, if I use the code: resultText_txt.text = math1 [ceiling];

    I see:

    result 1

    and then result in 1 will be deleted and I see the result without results 1 2

    so, what command need use "get"?

    or maybe need to use any other way?

    Thank you for all the ideas.

    In AS3 to add text to an instance of a textfield, you must use the appendText() method of the TextField class.

    If you have a named myText TextField instance, you could:

    myText.appendText ("result1");

    myText.appendText ("result2");

    myText.appendText ("result3");

    I hope it helps

    João Gonçalves

  • Function that returns the text of the error - type of Validation

    Small question regarding creating a function that successfully compiles a validation without a text of the error control: what value the function returns to validation successful?

    I tried a null value, but it doesn't seem to work.

    Thank you.

    Hello

    How does it work?

    What return NULL validation function is passed. If it returns a character string, then the validation failed and string is displayed as the error message for validation

    BR, Jari

  • How to return the text of the URL / Awesome Bar to a color sold in Firefox 6?

    Are the parameters in: Config?

    This is a new feature in Firefox to highlight the domain in the URL bar. You can change a preference to do the full URL darkness.

    Change a hidden preference:

    1. type of topic: config in the location/URL bar and press ENTER.
    2. If you see a warning, accept (promise to be careful)
    3. Filter: browser.urlbar.formatting.enabled
    4. in the lower panel, double click on this item to toggle the value false

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

Maybe you are looking for