Results 1 to 5 of 5

Thread: Rich Text Couldnt be saved in Database

  1. #1
    Join Date
    Nov 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Rich Text Couldnt be saved in Database

    hello,

    I use JSP as front end and MySQL 4.0.13 as Back end. In a text area ,I have used rich texting using the javascript downloaded from www. dynamidrive.com .At the time of inserting and editing there is no problem. It is saved in database in a different form.

    Eg: If the text is "This is a sample note." and i have made it bold. In database it is saved as <STRONG>This is a sample note.</STRONG>


    If anybody has encountered this problem... please help...


    Thanks
    Jayakrishnan

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Looks to me as though it saved the text and its formatting. If you don't want formatting saved, generate text without formatting. Or, if you kind of like the idea of being able to retrieve the text as it was formatted back to the web, use an element's innerHTML property for insertion, as opposed to adding a text node.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Rich texting

    Hi

    Thanks for your reply.But I would like to know that whether I can provide rich text formatting facility in a JSP layer.(Not a text area).

    Thanks
    Jakri

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    What does a JSP layer look like and how do you insert text or whatever into it?

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question.
    PLEASE: Include the URL to your problematic webpage that you want help with.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Nov 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I will save the text entered in the text area with rich text formatting and is saved in DB as i mentioned earlier.Then it is queriedfrom DB and is presented in a jsp page layer using <logic:write.......> java codes.
    If Icould provide a rich texting facility there then it can be viewed with the formatting given in the text area.

    Jakri

Bookmarks

Posting Permissions

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