Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-1366

HTML Textarea tag renders without leading return (a '\n')

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 1.1 RC1
    • None
    • Unknown
    • None
    • Operating System: All
      Platform: All
    • 18599

    Description

      The rendered textarea resulting from a html:textarea does not contain a leading
      '\n' or return character. When the browser is sending the content of the
      rendered textarea, it removes a leading '\n' character.

      <!-- fooBarProperty contains '\n Foo, Bar' -->
      <html:textarea property="fooBarProperty"/> results in:
      <textarea>
      Foo, Bar<textarea>

      This results in ' Foo, Bar' being send as content by the browser, but it should
      be sending '\n Foo, Bar'. This problem can be resolved by rendering the
      <textarea> with a '\n' after the start-tag. The rendered textarea should be:

      <textarea>

      Foo, Bar</textarea>

      This result in '\n Foo, Bar' being send as content of the textarea, which is
      correct.

      Attachments

        Activity

          People

            Unassigned Unassigned
            r.de.wit@barito.nl Ronny de Wit
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: