DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11104>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11104

multipart/form-data loses EOLs in text areas

           Summary: multipart/form-data loses EOLs in text areas
           Product: Struts
           Version: 1.1 Beta 1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: File Upload
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have created a form (using the html:form tag) with both a file upload box and
a text area (also using their respective html: tags).  The form is set to
enctype="multipart/form-data".  When the content from the text area is stored in
a String property on its FormBean, the first two lines have been combined into
one (EOL characters removed), and the subsequent lines are separated by CRs only.

If I remove the file upload box and the enctype, the proper value is stored in
the String property, including EOLs.

If I print out the data submitted by the browser, it appears that the browser is
submitting the text correctly, and the request is populated correctly, so
presumably it is Struts mangling it.

I'm running Struts 1.1b1 on Jboss 246/Tomcat 403 on Red Hat 7.2, and I tried a
Mozilla 1.0 client on that box as well as an IE 6 client on a Windows 2000 box.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to