Format textarea form text

Hi,
You probably all have posted messages on this forum.text is entered in textArea forms and when you type a new line it is automatically transfered with the textarea form value text...
i want to implement this same behaviour : i have a jsp page with a form having a textarea . when i submit the form i want to have the text formated so each typed new line is transfer as a <br> html tag with texarea value text.
is this possible ? how can i do it ?
thanks.

You can't make the text submit with <br> tags instead of the line separator.
You CAN do a string replacement when it gets to the server end.
Something like this:
String value = request.getParameter("textAreaValue");
value = value.replaceAll("\\n", "<br>");

Similar Messages

  • Using formats of SO10 text in Adobe forms

    Hello guys,
    I got a question concerning the interaction of SO10 texts with adobe form text fields.
    I know there are some threads about it here, and I think I understand the default SAP behavior, but can you please confirm if I am right? Then I got a special question about one case.
    So is it right that there is only the difference between formatting the textfield itself in adobe form layout and adding a style to the text field in form context?
    This means:
    (1) Whenever in my text field in form context no style is added, the adobe form will take the formatting like it is done in the adobe form layout? This would mean that every format which is entered in the SO10 text is insignificant for the adobe form?
    (2) Whenever in my text field a style is added, SAP will use SO10 text formats? This means, SAP searches for the smartforms style which is entered in the textfield and uses the formats from SO10 text like they were defined in the smartforms style?
    Is this correct so far?
    Now the special questions:
    (1) What happens if a style is added, but the style does not exist as smartforms style. Which font etc. will be used then?
    (2) What happens if a style is added, but the format of SO10 text does not exist in the smartform style?
    In both cases it looks like SAP takes some "default" style, but where does it come from?
    Thanks a lot!
    Regards
    Michael

    Thanks Rakhi, but that did not resolve my issue. Below is new out as per the thread suggestion and this is not what I wanted.:
    "<H>Thank you for choosing Enterprise.</> We look forward to seeing you at 9:00 am on Monday,
    November 28, 2011. This message is to confirm you have updated your reservation.
    Following are the details for the updated reservation:
    P.S. Remember us when you're renting in town. Enterprise is always nearby at more than 6,500
    neighborhood locations."
    - shalini

  • How can I format a form so that all text entered is "all caps"?

    Thanks in advance for your help. I am trying to format a form so that all text extered is in "all caps". I am using Adobe Acrobat X. Any advice and help would be greatly appreciated. Thanks!

    You can use a custom key stroke script like:
    // custom keystroke
    if(event.willCommit == false) {
    if(event.value.length < 1 ) {
    // set first characater to caps
    event.change = event.change.toUpperCase();
    } // end lentgh less than 1;
    } // end custom keystroke
    And then a custom format or validation script:
    // custom format or validation script
    if(event.value != "" && event.value.substr(event.value.length -1, 1) != ".") {
    event.value = event.value + (".");
    } // not null and end  last character not ".";
    // custom format or validation script

  • Form text item truncate

    Hi,
    My form emp has to show the employee names in a single text field, using this
    select query
    SELECT dept,
    RTRIM
    (XMLAGG (XMLELEMENT (e, emp_name || ',')).EXTRACT ('//text()'),
    ) emp_name
    FROM emp
    GROUP BY dept;
    multiple records are now coming in single text field but my "emp_name" data type is varchar2(150) so in form
    in getting emp_name text field have records in this format
    " Andrew "Big gap",roger"Big gap" ,John"Big Gap",fletcher
    i guess this problem becoz of the data type length, how to truncate this length in forms text field?
    Edited by: Veekay on 07/02/2011 09:41 م

    Hi
    i believe u r using the right function as u can see here
    http://techonthenet.com/oracle/functions/rtrim.php
    rtrim('tech '); would return 'tech' if i got ur problem then may be ur data length property of ur the text item if u minimize the spaces of displasying ur data
    guess this problem becoz of the data type lengthyesss, i guess this too :)
    Hope this helps
    Regards,
    Abdetu...

  • Export to excel with formatting was autowrapping text in a cell

    Export to excel with formatting was autowrapping text in a cell without having to check the can grow option.  When the can grow option is checked it does wrap the text however it spans multiple rows, which causes complications when trying to sort. 
    It worked in:
    ProductVersion=10.0.0.533
    ProductName=Crystal Enterprise 10 Embedded
    Doesnt work in:
    Crystal Reports 10.0 Service Pack 6
    After the upgrade the reports did not autowrap, b/c the "can grow" option was not checked.  I believe this was fixed by "ADAPT00305137 Patch ID: 36479914
    Description:
    When users export to Excel 97-2000 with the page-based format, text fields are wrapped, even when the "can grow" feature in the
    Designer is turned off." .   After we turn the option to grow on it does wrap however it spans across multiple rows.  So I guess my question is there a way for it not to span multiple rows when wrapping text?
    Edited by: dforde on Jan 27, 2010 11:12 PM

    I could be wrong, but I believe the export to excel option exports the database values, and the export to HTML exports the values seen in the sheets. If the database values are stored as seconds, the Excel will see them as seconds, and the data will have to be formatted properly in Excel.
    I haven't toyed around with Excel exports that much, but it might be possible to set up a template or macro in excel that would have the proper formatting, and use it when opening the Disco export.

  • How to use multiple patterns for masking/format the input text

    Hi All,
    I am using Jdeveloper 11.1.1.5 and i have a requirement where i need to format my input Text value in these below patterns:-
    Format
    Example
    AA9A 9AA
    EC1A 1BB
    A9A 9AA
    W1A 1HQ
    A9 9AA
    M1 1AA
    B33 8TH
    A99 9AA
    AA9 9AA
    CR2 6XH
    DN55 1PT
    AA99 9AA
    For Example :-  If user puts value as EC1A1BB, it should automatically changed to EC1A 1BB
                                 if user puts value as W1A1HQ, it should be automatically changed to W1A 1HQ and so on..
    If it could have been one format , i might have followed this :- https://blogs.oracle.com/jdevotnharvest/entry/get_social_security_numbers_right
    But for multiple patterns i am not able to get through to the proper solution.
    Is there any way to achieve this ? Please suggest.
    Regards,
    Shah

    For the validation you should be able to use one regular expression where you add the logical or (|)  (check the doc http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html) between the groups. If none of the patterns matches you have an error.
    For the for formatting I'm not sure you can use only one expression.
    I suggest to write one method which does the checking on and the formatting may be using an array of patterns to check and iterate the patterns in a loop. Once you found a match you can read the needed format from another array (or an other dimension if you prefer to use a multidimensional array).
    Timo

  • IPhoto sends emails in Rich format even if the default format is Plain Text

    Detailed Summary (wouldn't fit in the Topic Subject):
    iPhoto will always send emails in Rich Text format even if Mail application is set to send all emails in Plain Text format. In other words, emails initiated from iPhoto ignore the selected Message Format setting in the Mail application.
    Description:
    It is a better practice to email photos in the Plain Text format instead of Rich Text format so recipients using different email clients can easily download attached pictures as regular attached files.
    The workaround is to change the email format to Plain Text before sending it. This wouldn't be such a problem if you could make this a permanent setting however this is not possible. The Mail application has a specific setting for this but iPhoto simply ignores it. This is the issue I am raising here.
    How to reproduce the problem:
    1. Open the Mail application (Assuming you already have an email account configured)
    2. Go to Preferences, Composing tab
    3. Change Message Format to "Plain Text"
    4. Optional step to verify that the Plain Text is now the default format: Start a new email. Click on menu Format and you'll see "Make Rich Text" available, which means the current email is in fact in Text Format. Close this email.
    5. Open iPhoto
    6. Select one or more photos and click on the "Email" icon on the lower right hand side
    7. A details popup will open, click on "Compose Message"
    8. The Mail application will open as well as a New Email window with the Subject field filled out and the selected photos in the email body
    9. Click on the menu Format
    Expected: Th last option should be "Make Rich Text" indicating that the current email is in Plain Text format as determined by the Mail settings (steps 1-5 above)
    Actual: Last option is "Make Plain Text" which means the current email is fact in the Rich Text format which does not match the Mail application settings.
    Can we at least get an acknowledgement from Apple that this is a known issue? Also, is there a fix for this? It is not an acceptable solution to tell users to manually select Plain Text for every email. I am tired of asking people to resend emails that way. That is a workaround, not a solution.
    Test details:
    - Mail Version 4.4 (1082)
    - iPhoto Version 8.1.2 (424)
    - OSX Version 10.6.5

    iPhoto menu -> Provide iPhoto Feedback to report a bug.
    Can we at least get an acknowledgement from Apple that this is a known issue?
    Need to ask Apple that one.
    Regards
    TD

  • Problem in formatting of long text -- line break not recognized.

    Hi ,
    We have a PO smartform in our SRM system and we are facing problem with formatting of long text on the smartform for long texts maintained for the PO.
    for ex, we maintain the long text as --
    "this is long text for item 1.
    1. this is line 1.
    2. this is line 2."
    On the smartform it is displayed as --
    this is long text for item 1. 1. this is line 1. 2. this is line 2.
    So basically, the line breaks in the text are not considered in the smartform .
    Any suggestions on how to fix this issue ??
    Thanks.

    Hello Harmeet,
    Which Std. FM are you using to fetch the PO texts? If the PO doesn't exist in your system, i'm afraid you cannot use Include Texts as mentioned by Harsh.
    As an alternative you'll have to create a table & pass the text lines to it! I don't think SmartForms are not smart enough to identify new-line character.
    BR,
    Suhas

  • How to create-Form text field to simultaneously preview the text over an image

    I am trying to make a web page similar to the link below…where when a customer types in the form text field, and simultaneously, the text will preview in another area of the webpage over and image. See example when you create a label @ www.customwinesource.com custom labels…http://www.customwinesource.com/index.cfm?method=storepairing.listPairing&wineryid=auto
    Any help would be much appreciated

    I wasn't able to (easily) find anything in the way of a textfield to type something into that you describe, but you can assign code for input textfields to detect when something changes in them and take action from that event.  How you do it depends on which version of actionscript you are using.

  • Idoc is recieved as  xml format instead of text format

    hi i am new to XI , I am right now i am trying with Idoc to file scenario
    i am sending idoc from an R/3 system and i am receiving it as file in another R/3 system. In accordance to that i have designed &#38; configured all settings, But when i am sending idoc thru my communication channel i am able view a '" *.txt " file with all my necessary details  in xml  format instead of text format.
    desin details
    my source and target fields are
    FLCUSTOMER_CREATEFROMDATA idoc to the file which as the only few important fields of idoc.
    configuration details
    in communication cahnnel :
    adapter type : file
    message protocol: file
    processing parameters:
    constructution mode : create
    file type : binary
    advance mode
    row.fieldNames : with its fields seperated buy comma
    row.fieldSeparator : ,
    row.endSeparator : 'nl'
    i stuked up with this level for the past  10 days ur valuble suggestion will  help me lot to reach my target
    Regards
    saravanakumar P.K.

    You have selected the wrong message protocol: to get an file not XML you should select File Content converion as message protocol
    change it to folowing
    configuration details
    in communication cahnnel :
    adapter type : file
    message protocol: file content conversion
    processing parameters:
    constructution mode : create
    file type : binary
    advance mode
    row.fieldNames : with its fields seperated buy comma dnt use this
    row.fieldSeparator : ,
    row.endSeparator : 'nl'
    specify only field sepratator and endseparator dnt have to specify fielnames for receiver adapter in contant conversion.

  • How to format a form with adf

    Hi,
    I want to format an adf form like this :
    http://dl.dropbox.com/u/33421977/adf_form.PNG
    To do this I have used af:panelDashboard and af:panelBox with af:panelFormLayout inside.
    Now I don't want to use panelBox anymore, but I don't know how to achieve this without panelDashboard/panelBox.
    What is th best aproach to do this? Can you send me some links which explain how to format a form with adf?
    Thanks.

    Is just a question of style. In the real application this form is included in another panelBox. So it looks too... I don't know how to say it... too heavy?
    In fact I don't want to see these panelBoxe's borders. Maybe I have just to change the style of these boxes? Do you know if it is possible?
    But more generally, what is the right way to format adf forms? Can I achieve this sort of formatting just using panelFormLayout?

  • Embedded SWF in PDF, "form" text transfer to said SWF

    Thanks in advance for your help.
    { also posted in the Flash Professional forum }
    How to have a SWF (embedded in PDF) load a form text field: "value" ?
    Objective: given;
    ~ SWF is embedded in a PDF
    ~ form field in PDF = "name1"
    Coding task;
    how to script the SWF's text field so that it can use the PDF's form text field
    while embeded in the PDF (that has a form field / "value").
    many thanks
    Dale
    Fremont, CA

    ActionScript in the SWF has direct access to the Acrobat JavaScript model through the ExternalInterface object.
    Read this blog:
    http://pdfdevjunkie.host.adobe.com/RMA1_acrossTheBridge.shtml
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)

  • Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.? I want to alter the formatting (i.e., text and/or cell background color), but not cell content.

    Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.?
    I want to alter the formatting (i.e., text and/or cell background color), but not the content, of the target cell(s).

    Hi Tom,
    Your LOOKUP formula will return a value that it finds in the "other" table. That value can be used in conditional highlighting rules. (Numbers 3 calls it conditional highlighting, not conditional formatting. Just to keep us awake, I guess, but it works the same).
    Please explain what you are trying to do.
    Regards,
    Ian.

  • Lost format after using text editing tool

    Using Acrobat 9 Pro and the text editor on a scanned document. The edit works fine but when I save the altered file I lose the page format. The text has unwanted spaces and changes in the indentation. What am I doing wrong?

    Probably nothing is wrong, other than your assumption that Acrobat is an editor. The editing it can do is very limited and is not recommended if it can be avoided. You might find it easier to save the OCR'd document to a DOC file and work on that, though you will probably have to fix the formatting and such.

  • Format/hyperlink certain text in the conversation window using an API plugin

    Hi, I want to format/hyperlink certain text and make it clickable in the conversation window of Lync. The click itself will execute a Desktop application.
    Is this possible via an API plugin and is there example code on how to manipulate the conversation window?
    Thanks!

    Hi wyatt biker,
    To ensure you get better support, I suggest you turn to our Lync Development forum for dedicated support.
    With the assistance provided there, it is more likely the issue can be resolved. Sorry for any inconvenience this caused. Thanks for your understanding.
    Best regards,
    Eric

Maybe you are looking for

  • FOR LOOP cursor that updates table A based on a value in table B

    Hi, I need a FOR LOOP cursor that scans and updates all pro-rata column in table EMPLOYEE(child) based on what pay classification all employees are on in the CLASSIFICATION(parent) table. DECLARE BEGIN IF employee.emp_type = 'FT' THEN UPDATE employee

  • Why can't I play music from the cloud on my laptop?

    So I recently uploaded all my music in the iCloud from my PC Desktop computer in hopes that I could play this music remotely from my laptop. Unfortunatly, it's saying I can't within 40 days when I turn on iMatch. So what's the problem? Do I need to w

  • 2008 Gen Macbook Pro battery constantly drains

    I have a 2008 era Macbook Pro (it's the one that's last of the aluminum keyboard generation) Sometime in the middle of 2010, the battery started bubbling out of its encasing eventually to the point where my laptop was no longer stable. The battery al

  • Cannot Install This Hardware

    I just got an ipod nano as a present today and i went to put music on it and i can't even get it connected to the computer. When i plug the nano in i get the 'found new hardware' wizard. But when it goes to search for the software to install it i get

  • BW system open for config for RSA1 display

    Hi Our developers have been told by another company that there is a bug in BW3.5 (fixed in 7) whereby the system needs to be open for config in SCC4 to be able to view certain data. This is in RSA1 - under InfoProvider they have a Holiday Entitlement