how to preserve text formatting in java

Discussion in 'Strings, I/O, Formatting, Parsing' started by sandeep91, Jan 17, 2011.

  1. sandeep91

    sandeep91 New Member

    Hi,
    i am creating a blog which have different topics and user can give their comments.
    i am stuck at one point, when user posts its comment, it will not in the format
    what the user write in the textarea.

    for e.g

    Hi
    this is a nice topic

    Thanks
    coming as:

    Hi this is a nice topic Thanks

    i want that comment post would be in same format as its posted
    i think i have to write a java class for formatting but i dont have an idea of it

    can any one suggest me waht to do.




    Thanks in advance
     
  2. sid

    sid New Member

    You can use JHtmlArea instead of text area.
    Similar
    to
    the one
    you
    used
    to
    post
    your
    query :)
     

Share This Page