Getting text/html message in proper format

i want to send a message in html format by setting the message content as:
msg.setContent(messageText, "text/html");where
String messageText="hello";
messageText="<html><body><font color=red>"+messageText+"</font></body></html>";
if i do this i get it in proper format in red color.
Now,i want it in the format below:for ex:
" Dear xyz,
How are You?
I am fine.
bye "
but my problem is that if i am getting the content in the messageText variable by using request.getParameter() method from another page,then i get it as:
" Dear xyz,How are You?I am fine.bye "
please tell me the solution to my problem of getting in the proper format.
thanx
geeta

i htink u can go in for pre formatting..
<pre> Message Text </pre> ....This will output the messagein the same way as it was written..
i did not try this..please tell me whether this solves ur problem.
sriram

Similar Messages

  • Using Abode Reader 11.0.6 in Windows XP, I get an error message saying "Prop Res DLL not loaded"

    When using Abobe Reader 11.0.6 in Windows XP, I get an error message saying "Prop Res DLL not loaded" when I try to print anything.

    Wow, what an ordeal.  First tried running the cleaner, then
    re-installing 11.0.6 -- didn't work (and that was after several attempts
    at reinstalling the Lexmark printer drivers and associated utilities,
    which didn't help either).
    Then tried a system restore to last week, when the print was working OK.
    -- Didn't fix it.
    Then tried cleaning and restoring 11.0.6 -- didn't work.
    Then tried cleaning and restoring to version 10.  Now printing works
    fine and system seems back to normal.
    Apparently, 11.0.6, which was working fine for a while, didn't like some
    other system update, but version 10 is not bothered by that.
    Thanks for your continued help and interest -- without your link to find
    option for installing older versions, I'd still be stuck.
    Jon Fuhrman

  • Starting getting text error message 2114 invalid number of digits.Contacted carrier with no response, getting fed up that this problem cannot be resolved, in the middle of maying funeral arrangements and started getting the same message

    Getting this message or a couple of my contacts, which have been texting OK , Have deleted them reentered with 10 digits nothing,
    they can text me but I cannot respond to them - now in the middle of receiving info on a death in the family - started getting the same message, and
    the day before all text's were going through fine. Have contacted carrier no one seems to know how to solve the problem. NOT A HAPPY CAMPER RIGHT NOW!

    First, uninstall "SuperTV" (whatever that is) according to the developer's instructions. It isn't working and it's filling the log with noise.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Post the messages logged before the boot, while the system was unresponsive or was failing to shut down. Please include the BOOT_TIME message at the end of the log extract.
    Post the log text, please, not a screenshot. If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message. When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    PLEASE DO NOT INDISCRIMINATELY DUMP THOUSANDS OF LINES FROM THE LOG INTO A MESSAGE. If you do that, I will not respond.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • Getting "Illegal HTML" messages when trying to post?

    I recently installed SuperAdBlocker, an anti-malware and popup blocker. The program works as promised and quite well. Some time after the installation I tried to post an item to the T6x board. I could not post and the Lithium software that powers the board returned a message in red letters that the post contained illegal HTML code. I tried writing the post in Notepad and then copying and pasting it into the message but still got the red warning.
    I began a trouble shooting tree and someplace down the trunk I got to "What's different since you last tried this?". Well the only thing different was the new popup blocker. I tried a new post and got the same result. Then I added http://forums.lenovo.com to the "safe list" in SuperAdBlocker and the problem went away.
    I don't know why, probably because I don't understand the underpinnings of Lithium, but the solution worked and I figured I should share it in case others encounter this problem
    T520 4239-CTO
    T61/p 6459-CTO (Gone but not forgotten)
    A31/p XP Pro 1 gig memory
    A30/p XP Pro 1 gig memory
    TP600 Win 2K 288 mb memory
    701C Win 98 Don't ask
    Solved!
    Go to Solution.

    Thanks for coming back and sharing that tip to help others!
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество
    Jane
    2015 X1 Carbon, ThinkPad Slate, T410s, X301, X200 Tablet, T60p, HP TouchPad, iPad Air 2, iPhone 5S, IdeaTab A2107A, Yoga Tablet, Yoga 3 Pro
    I am not a Lenovo Employee.
    I AM one of those crazy ThinkPad zealots!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!

  • Getting report in a proper format

    Hi all,
    I have some doubts in getting my ans in a proper format.
    I am not sure if it is possible.
    I have 2 tables with the foll desc
    desc table1
    loc varchar2
    name varchar2
    desc table2
    user number
    locn varchar2
    My intention is
    to list out all locn of table1
    with the locn name and the user who is authorised for tht locn
    along with all other locns the user is authorised to.
    Assuming the tables have foll recs
    Table1
    ~~~~~~
    Loc Name
    103G OH
    122A LA
    146Q TX
    Table2
    ~~~~~~
    User Locn
    79 103G
    100 122A
    100 142A
    100 130B
    120 146Q
    120 146R
    120 146S
    120 146T
    I am able to get the output as shown below.
    Loc Name User Locn
    103G OH 79 103G
    122A LA 100 122A
    122A LA 100 142A
    122A LA 100 130B
    146Q TX 120 146Q
    146Q TX 120 146R
    146Q TX 120 146S
    146Q TX 120 146T
    I would like to know if I can achieve the report
    in either of the following way.
    1, all locns tht an user is authorised should appear in the same row
    Loc Name User Locn
    103G OH 79 103G
    122A LA 100 122A,142A,130B
    146Q TX 120 146Q,146R,146S,146T
    2, or something like this which would improve the readability.
    Loc Name User Locn
    103G OH 79 103G
    122A LA 100 122A
    -------------------142A
    -------------------130B
    146Q TX 120 146Q
    -------------------146R
    -------------------146S
    -------------------146T
    (actually I don't want hyphens to be displayed there I need spaces)
    If any of you have solns pls reply
    Thanks
    Shyam.S

    Hi Shyam,
    A combination of the SQLPlus break command and an outer join should do it. Here is exactly what you are looking for:
    SQL> create global temporary table Dec7Table1(c1 varchar2(4), c2 varchar2(2)) on commit delete rows;
    Table created.
    Elapsed: 00:00:00.00
    SQL> create global temporary table Dec7Table2(c1 number, c2 varchar2(4)) on commit delete rows;
    Table created.
    Elapsed: 00:00:00.00
    SQL> insert into Dec7Table1 values ('103G', 'OH');
    1 row created.
    Elapsed: 00:00:00.00
    SQL> insert into Dec7Table1 values ('122A', 'LA');
    1 row created.
    Elapsed: 00:00:00.00
    SQL> insert into Dec7Table1 values ('146Q', 'TX');
    1 row created.
    Elapsed: 00:00:00.00
    SQL> insert into Dec7Table2 values (79, '103G');
    1 row created.
    Elapsed: 00:00:00.00
    SQL> insert into Dec7Table2 values (100, '122A');
    1 row created.
    Elapsed: 00:00:00.00
    SQL> insert into Dec7Table2 values (100, '142A');
    1 row created.
    Elapsed: 00:00:00.00
    SQL> insert into Dec7Table2 values (100, '130B');
    1 row created.
    Elapsed: 00:00:00.00
    SQL> insert into Dec7Table2 values (120, '146Q');
    1 row created.
    Elapsed: 00:00:00.00
    SQL> insert into Dec7Table2 values (120, '146R');
    1 row created.
    Elapsed: 00:00:00.00
    SQL> insert into Dec7Table2 values (120, '146S');
    1 row created.
    Elapsed: 00:00:00.00
    SQL> insert into Dec7Table2 values (120, '146T');
    1 row created.
    Elapsed: 00:00:00.00
    SQL> break on code;
    Elapsed: 00:00:00.00
    SQL> select t1.c1 as code, t1.c2, t2.c1
    2 from Dec7Table1 t1, Dec7Table2 t2
    3 where t1.c1(+) = t2.c2;
    CODE C2 C1
    103G OH 79
    122A LA 100
    100
    100
    146Q TX 120
    120
    120
    120
    8 rows selected.
    Elapsed: 00:00:00.00
    SQL> spool off;
    HTH.
    -Raj Suchak
    [email protected]

  • SOAP Rx Adapter... 401 Unauthorized.. Content Type: Text/HTML

    Hi,
    I get 401 unauthorized error while trying to invoke Webservice using Receiver SOAP Adapter..
    I know this error is b'cos Content-type = text/html instead of text/xml... So i used the MessageTransform bean with the required parameters... I even downloaded SOAP sniffer tool (suggested by Stefan grube & the log even says content type as text/html).. But still i keep getting text/html error...
    I don't have any problem invoking from my PI Server using SOAP testing tool.. I don't have a proxy between PI & Webservice as they are in the same network. I am able to reach the webservice but is failing b'cos of 'text/html'
    I am on PI7.1. Find the screenshots of the error in the below location...
    http://picasaweb.google.com/siva.maranani/SOAP_RxAdapter#5361872782883678738
    http://picasaweb.google.com/siva.maranani/SOAP_RxAdapter#5361872786622656386
    -Siva Maranani

    >
    Siva Maranani wrote:
    > I was able to use connect to Webservice using SOAP test tool ( on PI server) using the username/password. When i tested it it was sucess (I analyzed Header params- Content-type - text/xml). When i changed it to text/html, it throws an error... (not exactly 401 unauthorized.. but a different one)
    >
    > Even after i had the module, i am still not sure why it still compalins about Content-Type Text/HTML??
    >
    > -Siva Maranani
    it seems odd that you have the 401 error throwing up.
    one suggestion, if your network has a proxy, have you given the particulars in the adapter?
    ref:
    /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009

  • When I forward a message with pictures/formatting, it all turns to text. Where do I set an option to HTML instead of text?

    I can forward the message with the formatting when I use "the other browser" by choosing OPTIONS, then HTML. I don't see how to do this in Firefox and it all turns to plain text.

    I believe that if you turn off "Send As SMS: off in the settings, it should only attempt to send as an iMessage and should fail if iMessage is unavailable. It tries to send an iMessage a few times and then if unable, it will send as an SMS if you have that turned on.

  • Why am I getting an error message when texting another iPhone number saying destination format incorrect?

    I have been texting a uk phone numer for sometime with no problems but am now getting an error message saying" sorry destination number format incorrect " what can I do?

    Nope, that's not it. I'm having exactly the same issue with someone I'm still in contact with. It's really bizarre but it only appears to affect a few contacts and the number formats are identical to others that work fine. Bizarre.

  • KNOWN ISSUE: HTML Messages with plain-text signatures

    To get around the EAS security policy issue, I'm having non-sensitive emails from work forwarded to a GMail account from a redirect set up in our corporate OWA. The redirect seems to send the messages to GMail without any issues; formatting is 100% intact, and in the GMail web client as well as Thunderbird, Entourage, etc., HTML emails with plain-text signature attachments show the plain-text message inline with the rest of the formatted message. All of our internal mailing lists have these plain text attachments that say where the message was coming from (Message sent from [email protected] by listserv). These get affixed to every message, both plain text and HTML.
    Here's my problem: The Pre's email client handles both plain text and HTML messages beautifully. But, when I receive a message from a mailing list with a plain text attachment, the HTML portion disappears, and all I see is the signature.
    Is there any way to make the Pre show the HTML INSTEAD of the plain text? I can live without the sig, I know where the messages are coming from already. But if I can't read the message, it's useless. I've only begun researching this and so far Google hasn't been much help, nor has searching these or other forums. Any help would be appreciated.
    Palm Pre P100EWW
    Post relates to: Pre p100eww (Sprint)
    Message Edited by HowellBP on 06-16-2009 04:13 PM

    1-51626418773
    I just got off the phone with Palm Support. Apparently this is a bug in the mail application. It currently does not support parsing both HTML and plain text in the same message. It will read EITHER plain text OR HTML, but not both at the same time. This will be fixed in a future update.

  • When opening a msword file wit .doc extension i get an error message: import error. The file format is not valid

    when opening a msword file with .doc extension i get an error message: import error. The file format is not valid

    Looks like. I tried in the TextEdit format tab to set all the combinations while opening the file, like plain text, rtf and html without success. Always I get the same signs.

  • WCF returning "The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8)"

    I have a WCF service I am trying to run on a new installation of 64-bit Windows Server 2008 IIS. Although it runs fine on Windows 2003 IIS, it is throwing the error in the thread title, which appears to be a server config issue, but I am not sure. Googling and searching the MSDN forums did not turn up a solution. I tried running WCF Logging, but that didn't help either.
    Does anyone have any suggestions on how to solve this probelm?
    Here is the error:
    The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>500 - Internal server error.</title>
    <style type="text/css">

    I have the same issue on Windows 7 machine. The service works fine using a SoapUI client but a .Net client faisl to get a response.
    Hi,
    I have a WCF service which works perfectly when using SoapUI but throws error in my .Net client.
    {"The content type text/html; charset=UTF-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first
    1024 bytes of the response were: '<HTML><HEAD><link rel=\"alternate\" type=\"text/xml\" href=\"http://xyz.mysite.com/ysa/Broker.svc?disco\"/><STYLE type=\"text/css\">#content{ FONT-SIZE: 0.7em;
    PADDING-BOTTOM: 2em; MARGIN-LEFT: 30px}BODY{MARGIN-TOP: 0px; MARGIN-LEFT: 0px; COLOR: #000000; FONT-FAMILY: Verdana; BACKGROUND-COLOR: white}P{MARGIN-TOP: 0px; MARGIN-BOTTOM: 12px; COLOR: #000000; FONT-FAMILY: Verdana}PRE{BORDER-RIGHT: #f0f0e0 1px solid; PADDING-RIGHT:
    5px; BORDER-TOP: #f0f0e0 1px solid; MARGIN-TOP: -5px; PADDING-LEFT: 5px; FONT-SIZE: 1.2em; PADDING-BOTTOM: 5px; BORDER-LEFT: #f0f0e0 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: #f0f0e0 1px solid; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e5e5cc}.heading1{MARGIN-TOP:
    0px; PADDING-LEFT: 15px; FONT-WEIGHT: normal; FONT-SIZE: 26px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 3px; MARGIN-LEFT: -30px; WIDTH: 100%; COLOR: #ffffff; PADDING-TOP: 10px; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #003366}.intro{MARGIN-LEFT: -15px}</STYLE><TITLE>Broker
    Service</TITLE></HEAD><BODY><DIV id=\"content\"><P class=\"head'."}
    I have the same service hosted on my local machine and when I point to the local service I can execute the operation with no issues. The message encoding is Soap11. I tried changing to Soap12 but I get exact same error. Any ideas greatly appreciated.
    I do have windows Activation Features installed and I am using .Net Framework 4.
    Thanks
    Sofia Khatoon

  • I just bought an iPad air and tried to purchase books in ibooks. After download and trying to open book I get the message "cannot open "storm front" it is formatted incorrectly, or is not a format that ibooks can open. I get the same message on my iPhone.

    I just bought an iPad air and tried to purchase books in ibooks. After download and trying to open book I get the message "cannot open "storm front" it is formatted incorrectly, or is not a format that ibooks can open. I get the same message on my iPhone. What is up? Please help.

    send problem to Apple.
    http://www.apple.com/feedback/ipad.html
    How to report an issue with Your iTunes Store purchase
    http://support.apple.com/kb/HT1933
    iTunes Purchase Problems: How to Report a Problem to iTunes Support
    http://tinyurl.com/7tscpa7
     Cheers, Tom

  • I am using an I phone 5 in Germany and trying to get text messaging to work through the hands free Bluetooth connection on a Honda CRV. It keeps telling me that text messaging is not a feature of my phone. messages come in on the phone.How to resolve ?

    I am using an I phone 5 in Germany and trying to get text messaging to work through the hands free Bluetooth connection on a Honda CRV. It keeps telling me that text messaging is not a feature of my phone. messages come in on the phone.How to resolve ?

    mono 8 bit 8k is 64kbps, yes. 8 bits times 8,000 = 64,000 = 64k bits/sec.
    And yes I think that's a typo - there's no such thing as 'Mone' that I've ever heard of...
    But you might want to check to find out if this is a mu-law non-linear format, possibly - there are several ways that 8 bit 8k wav files can be encoded, and typically phone systems don't use linear ones. If you have a log-in to Zultys' user-base system they have an FAQ there, I believe - the answer might be in that, and it won't cost $500.

  • Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 404 Not Found

    In my 2006 biztalk application I have exposed web service to receive SAP input. It was working fine. After I have modified something in orchestration in that application . I am getting following error while SAP try to consume my web service. Can anyone please
    help me.
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 404 Not Found

    In my 2006 biztalk application I have exposed web service to receive SAP input. It was working fine. After I have modified something in orchestration in that application . I am getting following error while SAP try to consume my web service.
    HI Arivazhagan K,
    Could you give some explanation about what you modified? according the to error message, this is "resource is not found issue".
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to get the HTML data formatted display using the Rrt template

    hi,
    I have a table which has data with html tags in it.
    eg as shown below.
    sample text is as follows:
    <BR>
    <b>MY TEST HERE HAS SOME BOLD TEXT IN IT. THIS WHOLE LINE SHOULD BE BOLD</b><br>and the rest of the text will not be bold.
    <BR><br>
    now I want to be able to display this text with the proper format using BI publisher / rt template.
    my report shows the tags as is instead of being formatted.
    please let me know how i can fix this
    Thanks
    knut

    http://blogs.oracle.com/xmlpublisher/2007/01/02.

Maybe you are looking for

  • Can I use Creative Cloud on multiple Macs?

    I am work in a company where we are using Creative Cloud for teams. Recently I've been doing some work from home, but on CS6. Is it possible to use CC on my Mac at home using the same Adobe Login details? Do I need to register with Adobe with differe

  • WRT54GS Settings Problem

    hi, i am having a problem changing my router settings. i tried using the Easy Link Setup software but that didn't do anything, also i have tried doing the http://192.168.1.1. thing, and whenever i go there this is how it looks [image] and there are n

  • Missing startup script for version cue

    I'm having the problem where I don't seem to have the startup scripts for version cue in bridge. When I check the list of startup scripts in preferences, the other scripts all seem to be there like for contribute, fireworkds etc. However version cue

  • Three users  libraries with two ipods

    Please can someone help me. My friend has asked me to help sort out her itunes library on her PC as her husband has a new ipod and now has an empty library on his user account. Her young son has a library with very few songs in and she has a library

  • My iphone 3gs is not syncing with itune please help me

    my iphone 3gs is not syncing with itune please help me