struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DavidZaz <>
Subject Multipart/Form-Data with Struts 1
Date Tue, 05 Oct 2010 14:16:55 GMT

I have a legacy application using Struts 1.2.8 and I have the following HTML

<html:form action="/" method="post"
     <html-el:textarea property="userEnteredHtml" styleClass="tinyMCE"

If I include multiple blank lines in the tinyMCE editor, the generated HTML
should be:


However, IE posts the following HTML:

<p>Â </p>

At first glance, I thought that this was exclusively a tinyMCE problem and I
posted on their forum. However, the problem goes away when I remove the
enctype="multipart/form-data" from the html:form declaration. Does Struts 1
do anything unusual with the enctype multipart/form-data attribute? It does
not seem that other tinyMCE editor users are experiencing this issue (since
they probably aren't using Struts 1).

Is there any alternative to using multipart/form-data? My form does include
a file upload which is why I initially added the multipart/form-data.
View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message